diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/testmain.cpp | 10 | ||||
-rw-r--r-- | src/test/testmain.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp index fbd7588ef..cae4aa3b7 100644 --- a/src/test/testmain.cpp +++ b/src/test/testmain.cpp @@ -274,7 +274,7 @@ int TestMain::readValue(const int ver, int def) return def; } -int TestMain::invokeTest(std::string test) +int TestMain::invokeTest(const std::string &test) { mConfig.setValue("opengl", static_cast<int>(RENDER_SOFTWARE)); @@ -292,7 +292,7 @@ int TestMain::invokeTest4() return ret; } -int TestMain::invokeSoftwareRenderTest(std::string test) +int TestMain::invokeSoftwareRenderTest(const std::string &test) { mConfig.setValue("opengl", static_cast<int>(RENDER_SOFTWARE)); mConfig.write(); @@ -301,7 +301,7 @@ int TestMain::invokeSoftwareRenderTest(std::string test) return ret; } -int TestMain::invokeFastOpenGLRenderTest(std::string test) +int TestMain::invokeFastOpenGLRenderTest(const std::string &test) { mConfig.setValue("opengl", static_cast<int>(RENDER_NORMAL_OPENGL)); mConfig.write(); @@ -310,7 +310,7 @@ int TestMain::invokeFastOpenGLRenderTest(std::string test) return ret; } -int TestMain::invokeFastOpenBatchTest(std::string test) +int TestMain::invokeFastOpenBatchTest(const std::string &test) { mConfig.setValue("opengl", static_cast<int>(RENDER_NORMAL_OPENGL)); mConfig.write(); @@ -319,7 +319,7 @@ int TestMain::invokeFastOpenBatchTest(std::string test) return ret; } -int TestMain::invokeSafeOpenGLRenderTest(std::string test) +int TestMain::invokeSafeOpenGLRenderTest(const std::string &test) { mConfig.setValue("opengl", static_cast<int>(RENDER_SAFE_OPENGL)); mConfig.write(); diff --git a/src/test/testmain.h b/src/test/testmain.h index c46e6a1fc..72411417e 100644 --- a/src/test/testmain.h +++ b/src/test/testmain.h @@ -50,7 +50,7 @@ class TestMain final private: void initConfig(); - int invokeTest(std::string test); + int invokeTest(const std::string &test); int invokeTest3(); @@ -58,13 +58,13 @@ class TestMain final int invokeTest7(); - int invokeSoftwareRenderTest(std::string test); + int invokeSoftwareRenderTest(const std::string &test); - int invokeFastOpenGLRenderTest(std::string test); + int invokeFastOpenGLRenderTest(const std::string &test); - int invokeFastOpenBatchTest(std::string test); + int invokeFastOpenBatchTest(const std::string &test); - int invokeSafeOpenGLRenderTest(std::string test); + int invokeSafeOpenGLRenderTest(const std::string &test); void testsMain(); |