diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-01 15:14:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-01 23:42:37 +0300 |
commit | f9030497b6196ce2fadb6b6ada5d784be227d9a6 (patch) | |
tree | d11408b35d0860709d31e6520578cdd28391f151 /src/test | |
parent | f52ca7838789a6910840597a929ecf6e0be9e1de (diff) | |
download | mv-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.gz mv-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.bz2 mv-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.xz mv-f9030497b6196ce2fadb6b6ada5d784be227d9a6.zip |
Add missing const.
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(); |