Index: tests/Test.cpp |
diff --git a/tests/Test.cpp b/tests/Test.cpp |
index b904d5a76d739e184c8937b0533c6fd17f262df1..e57427a354952a7eca494826f1c160863c7b2029 100644 |
--- a/tests/Test.cpp |
+++ b/tests/Test.cpp |
@@ -1,10 +1,10 @@ |
+ |
/* |
* Copyright 2011 Google Inc. |
* |
* Use of this source code is governed by a BSD-style license that can be |
* found in the LICENSE file. |
*/ |
- |
#include "Test.h" |
#include "SkCommandLineFlags.h" |
@@ -40,8 +40,6 @@ |
} |
/////////////////////////////////////////////////////////////////////////////// |
- |
-const char* Test::gResourcePath; |
Test::Test() : fReporter(NULL), fPassed(true) {} |
@@ -123,9 +121,8 @@ |
return SkString(tmpDir); |
} |
-void Test::SetResourcePath(const char* resourcePath) { |
- gResourcePath = resourcePath; |
-} |
+static const char* gResourcePath = NULL; |
+void Test::SetResourcePath(const char* resourcePath) { gResourcePath = resourcePath; } |
SkString Test::GetResourcePath() { |
return SkString(gResourcePath); |