summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-01 15:14:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-01 23:42:37 +0300
commitf9030497b6196ce2fadb6b6ada5d784be227d9a6 (patch)
treed11408b35d0860709d31e6520578cdd28391f151 /src/test
parentf52ca7838789a6910840597a929ecf6e0be9e1de (diff)
downloadmv-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.cpp10
-rw-r--r--src/test/testmain.h10
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();