diff --git a/samples/Cpp/TestCpp/Classes/PerformanceTest/PerformanceSpriteTest.h b/samples/Cpp/TestCpp/Classes/PerformanceTest/PerformanceSpriteTest.h index b9d72a399e..58c035eaef 100644 --- a/samples/Cpp/TestCpp/Classes/PerformanceTest/PerformanceSpriteTest.h +++ b/samples/Cpp/TestCpp/Classes/PerformanceTest/PerformanceSpriteTest.h @@ -70,11 +70,11 @@ protected: int subtestNumber; std::vector _vecFPS; int _executeTimes; - const int MAX_AUTO_TEST_TIMES = 25; - const int MAX_SPRITE_TEST_CASE = 7; - const int MAX_SUB_TEST_NUMS = 9; - const int AUTO_TEST_NODE_NUM1 = 500; - const int AUTO_TEST_NODE_NUM2 = 1500; + static const int MAX_AUTO_TEST_TIMES = 25; + static const int MAX_SPRITE_TEST_CASE = 7; + static const int MAX_SUB_TEST_NUMS = 9; + static const int AUTO_TEST_NODE_NUM1 = 500; + static const int AUTO_TEST_NODE_NUM2 = 1500; }; class SpritePerformTest1 : public SpriteMainScene