From a23620b72f353253d811304954c99c5c65f1fcf9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 4 Sep 2005 19:32:58 +0000 Subject: [PATCH] fix compiling regex repeatedly --- stepmania/src/PlayerOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/PlayerOptions.cpp b/stepmania/src/PlayerOptions.cpp index 0feaaab3d4..9b62e0cd67 100644 --- a/stepmania/src/PlayerOptions.cpp +++ b/stepmania/src/PlayerOptions.cpp @@ -251,7 +251,7 @@ void PlayerOptions::FromString( CString sOptions, bool bWarnOnInvalid ) #define SET_FLOAT( opt ) { m_ ## opt = level; m_Speed ## opt = speed; } const bool on = (level > 0.5f); - Regex mult("^([0-9]+(\\.[0-9]+)?)x$"); + static Regex mult("^([0-9]+(\\.[0-9]+)?)x$"); vector matches; if( mult.Compare(sBit, matches) ) {