summaryrefslogtreecommitdiff
path: root/src/unittests/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-26 00:51:57 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-27 20:33:15 +0300
commit0c20db8d108c4123fcc3ecb343759e68567a4d4e (patch)
treef577edeae7b4866d68c084a1eaa229e98c80ea8f /src/unittests/utils
parent2be4fc5b4eee97938657c9c8be73c4b91c8b9826 (diff)
downloadplus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.gz
plus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.bz2
plus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.xz
plus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.zip
Remove extra ; from different code.
Diffstat (limited to 'src/unittests/utils')
-rw-r--r--src/unittests/utils/chatutils.cc6
-rw-r--r--src/unittests/utils/checkutils.cc4
-rw-r--r--src/unittests/utils/itemxmlutils.cc12
-rw-r--r--src/unittests/utils/translation/poparser.cc2
-rw-r--r--src/unittests/utils/xml.cc4
-rw-r--r--src/unittests/utils/xmlutils.cc18
6 files changed, 23 insertions, 23 deletions
diff --git a/src/unittests/utils/chatutils.cc b/src/unittests/utils/chatutils.cc
index 1069f6b5d..0121094d8 100644
--- a/src/unittests/utils/chatutils.cc
+++ b/src/unittests/utils/chatutils.cc
@@ -249,9 +249,9 @@ TEST_CASE("chatutils replaceVars", "")
Party::clearParties();
}
- delete2(actorManager);
- delete2(localPlayer);
- delete2(client);
+ delete2(actorManager)
+ delete2(localPlayer)
+ delete2(client)
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
}
diff --git a/src/unittests/utils/checkutils.cc b/src/unittests/utils/checkutils.cc
index a80a24c74..8244248ca 100644
--- a/src/unittests/utils/checkutils.cc
+++ b/src/unittests/utils/checkutils.cc
@@ -76,7 +76,7 @@ static bool testFailAlways1()
static bool testFailAlways2()
{
- reportAlways("test fail");
+ reportAlways("test fail")
return false;
}
@@ -96,7 +96,7 @@ TEST_CASE("CheckUtils", "")
SECTION("reportAlways")
{
- reportAlwaysReal("test report");
+ reportAlwaysReal("test report")
}
SECTION("failFalse")
diff --git a/src/unittests/utils/itemxmlutils.cc b/src/unittests/utils/itemxmlutils.cc
index 82cb5e25f..a73225f85 100644
--- a/src/unittests/utils/itemxmlutils.cc
+++ b/src/unittests/utils/itemxmlutils.cc
@@ -211,9 +211,9 @@ TEST_CASE("itemxmlutils readItemStatsString 1", "")
{
delete (*it).second;
}
- delete2(userPalette);
- delete2(theme);
- delete2(client);
+ delete2(userPalette)
+ delete2(theme)
+ delete2(client)
ResourceManager::deleteInstance();
VirtFs::unmountDirSilent("data/test");
VirtFs::unmountDirSilent("../data/test");
@@ -413,9 +413,9 @@ TEST_CASE("itemxmlutils readItemStatsVector 1", "")
{
delete (*it).second;
}
- delete2(userPalette);
- delete2(theme);
- delete2(client);
+ delete2(userPalette)
+ delete2(theme)
+ delete2(client)
ResourceManager::deleteInstance();
VirtFs::unmountDirSilent("data/test");
VirtFs::unmountDirSilent("../data/test");
diff --git a/src/unittests/utils/translation/poparser.cc b/src/unittests/utils/translation/poparser.cc
index aede83335..233eaa2a9 100644
--- a/src/unittests/utils/translation/poparser.cc
+++ b/src/unittests/utils/translation/poparser.cc
@@ -130,7 +130,7 @@ TEST_CASE("PoParser tests", "PoParser")
delete parser;
delete dict;
}
- delete2(client);
+ delete2(client)
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
}
diff --git a/src/unittests/utils/xml.cc b/src/unittests/utils/xml.cc
index 4711873ce..8165c23ef 100644
--- a/src/unittests/utils/xml.cc
+++ b/src/unittests/utils/xml.cc
@@ -395,8 +395,8 @@ TEST_CASE("xml doc", "")
::remove(tempXmlName);
}
- delete2(theme);
- delete2(client);
+ delete2(theme)
+ delete2(client)
ResourceManager::deleteInstance();
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
diff --git a/src/unittests/utils/xmlutils.cc b/src/unittests/utils/xmlutils.cc
index 5d1bc4c46..0cc23fd90 100644
--- a/src/unittests/utils/xmlutils.cc
+++ b/src/unittests/utils/xmlutils.cc
@@ -96,9 +96,9 @@ TEST_CASE("xmlutils readXmlIntVector 1", "")
REQUIRE(1 == arr[3]);
REQUIRE(1 == arr[4]);
- delete2(userPalette);
- delete2(theme);
- delete2(client);
+ delete2(userPalette)
+ delete2(theme)
+ delete2(client)
ResourceManager::deleteInstance();
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
@@ -154,9 +154,9 @@ TEST_CASE("xmlutils readXmlStringMap 1", "")
REQUIRE(arr["xD"] == "1");
REQUIRE(arr["Metal"] == "26");
- delete2(userPalette);
- delete2(theme);
- delete2(client);
+ delete2(userPalette)
+ delete2(theme)
+ delete2(client)
ResourceManager::deleteInstance();
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
@@ -214,9 +214,9 @@ TEST_CASE("xmlutils readXmlIntMap 1", "")
REQUIRE(arr[10] == 20);
REQUIRE(arr[3] == 0);
- delete2(userPalette);
- delete2(theme);
- delete2(client);
+ delete2(userPalette)
+ delete2(theme)
+ delete2(client)
ResourceManager::deleteInstance();
VirtFs::unmountDirSilent("data/test");
VirtFs::unmountDirSilent("../data/test");