summaryrefslogtreecommitdiff
path: root/src/test/testmain.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-26 01:40:00 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-26 01:40:00 +0300
commitd4febba47388979b26cd4680cb8a6f20e548e399 (patch)
tree2d520db672ed39b755e668828d27f0dd9d18ed6e /src/test/testmain.cpp
parent803b6afd00b0e3574b40b866f21a0d3d01f6dc4d (diff)
downloadmanaverse-d4febba47388979b26cd4680cb8a6f20e548e399.tar.gz
manaverse-d4febba47388979b26cd4680cb8a6f20e548e399.tar.bz2
manaverse-d4febba47388979b26cd4680cb8a6f20e548e399.tar.xz
manaverse-d4febba47388979b26cd4680cb8a6f20e548e399.zip
Improve string usage in other files.
Diffstat (limited to 'src/test/testmain.cpp')
-rw-r--r--src/test/testmain.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp
index aa3254275..42e4ea9bd 100644
--- a/src/test/testmain.cpp
+++ b/src/test/testmain.cpp
@@ -93,17 +93,17 @@ int TestMain::exec(const bool testAudio)
else
soundTest = true;
- info += strprintf("%d.%d,%d,%d.", soundTest, softwareTest,
- fastOpenGLTest, safeOpenGLTest);
+ info.append(strprintf("%d.%d,%d,%d.", soundTest, softwareTest,
+ fastOpenGLTest, safeOpenGLTest));
if (!softwareTest)
{
int softFpsTest = invokeSoftwareRenderTest("8");
- info += strprintf ("%d", softFpsTest);
+ info.append(strprintf ("%d", softFpsTest));
if (!softFpsTest)
{
softFps = readValue2(8);
- info += strprintf (",%d", softFps);
+ info.append(strprintf (",%d", softFps));
if (!softFps)
{
softwareTest = -1;
@@ -112,7 +112,7 @@ int TestMain::exec(const bool testAudio)
else
{
rescaleTest[0] = invokeSoftwareRenderTest("5");
- info += strprintf (",%d", rescaleTest[0]);
+ info.append(strprintf (",%d", rescaleTest[0]));
}
}
else
@@ -120,15 +120,15 @@ int TestMain::exec(const bool testAudio)
softwareTest = -1;
}
}
- info += ".";
+ info.append(".");
if (!fastOpenGLTest)
{
int fastOpenGLFpsTest = invokeFastOpenGLRenderTest("9");
- info += strprintf ("%d", fastOpenGLFpsTest);
+ info.append(strprintf("%d", fastOpenGLFpsTest));
if (!fastOpenGLFpsTest)
{
fastOpenGLFps = readValue2(9);
- info += strprintf (",%d", fastOpenGLFps);
+ info.append(strprintf(",%d", fastOpenGLFps));
if (!fastOpenGLFps)
{
fastOpenGLTest = -1;
@@ -137,7 +137,7 @@ int TestMain::exec(const bool testAudio)
else
{
rescaleTest[1] = invokeFastOpenGLRenderTest("6");
- info += strprintf (",%d", rescaleTest[1]);
+ info.append(strprintf (",%d", rescaleTest[1]));
}
}
else
@@ -145,15 +145,15 @@ int TestMain::exec(const bool testAudio)
fastOpenGLTest = -1;
}
}
- info += ".";
+ info.append(".");
if (!safeOpenGLTest)
{
int safeOpenGLFpsTest = invokeSafeOpenGLRenderTest("10");
- info += strprintf ("%d", safeOpenGLFpsTest);
+ info.append(strprintf("%d", safeOpenGLFpsTest));
if (!safeOpenGLFpsTest)
{
safeOpenGLFps = readValue2(10);
- info += strprintf (",%d", safeOpenGLFps);
+ info.append(strprintf(",%d", safeOpenGLFps));
if (!safeOpenGLFps)
{
safeOpenGLTest = -1;
@@ -162,7 +162,7 @@ int TestMain::exec(const bool testAudio)
else
{
rescaleTest[2] = invokeSafeOpenGLRenderTest("7");
- info += strprintf (",%d", rescaleTest[2]);
+ info.append(strprintf(",%d", rescaleTest[2]));
}
}
else
@@ -170,7 +170,7 @@ int TestMain::exec(const bool testAudio)
safeOpenGLTest = -1;
}
}
- info += ".";
+ info.append(".");
int maxFps = softFps;
if (maxFps < fastOpenGLFps)