From 2157063d4e814b67744e3711ea9e8cb5bff1fb15 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 1 Jun 2004 07:47:07 +0000 Subject: [PATCH] minor optimization --- stepmania/src/RageBitmapTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index ea12446181..3ee80510b3 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -24,7 +24,7 @@ static void GetResolutionFromFileName( CString sPath, int &Width, int &Height ) * Foo (dither, res 512x128).png * * Be careful that this doesn't get mixed up with frame dimensions. */ - Regex re("\\([^\\)]*res ([0-9]+)x([0-9]+).*\\)"); + static Regex re("\\([^\\)]*res ([0-9]+)x([0-9]+).*\\)"); vector matches; if(!re.Compare(sPath, matches))