summaryrefslogtreecommitdiff
path: root/src/unittests/resources
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/resources
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/resources')
-rw-r--r--src/unittests/resources/dye/dye.cc6
-rw-r--r--src/unittests/resources/dye/dyepalette.cc2
-rw-r--r--src/unittests/resources/map/maplayer/drawfringenormal.cc4
-rw-r--r--src/unittests/resources/map/maplayer/drawfringesimple.cc4
-rw-r--r--src/unittests/resources/map/speciallayer.cc6
-rw-r--r--src/unittests/resources/resourcemanager/resourcemanager.cc6
-rw-r--r--src/unittests/resources/sdlimagehelper.cc6
-rw-r--r--src/unittests/resources/sprite/animatedsprite.cc2
8 files changed, 18 insertions, 18 deletions
diff --git a/src/unittests/resources/dye/dye.cc b/src/unittests/resources/dye/dye.cc
index bf9ea5cb4..68f473378 100644
--- a/src/unittests/resources/dye/dye.cc
+++ b/src/unittests/resources/dye/dye.cc
@@ -2004,9 +2004,9 @@ TEST_CASE("Dye real dye", "")
dyeCheck("|A:#0000FFFF,FF000050", "arrow_up_A.png");
}
- delete2(userPalette);
- delete2(theme);
- delete2(client);
+ delete2(userPalette)
+ delete2(theme)
+ delete2(client)
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
VirtFs::unmountDirSilent("data/test");
diff --git a/src/unittests/resources/dye/dyepalette.cc b/src/unittests/resources/dye/dyepalette.cc
index e5da0be04..e31052bc5 100644
--- a/src/unittests/resources/dye/dyepalette.cc
+++ b/src/unittests/resources/dye/dyepalette.cc
@@ -392,7 +392,7 @@ TEST_CASE("DyePalette tests", "")
REQUIRE(palette.mColors[0].value[2] == 46);
REQUIRE(palette.mColors[0].value[3] == 0x77);
}
- delete2(client);
+ delete2(client)
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
VirtFs::unmountDirSilent("data/test");
diff --git a/src/unittests/resources/map/maplayer/drawfringenormal.cc b/src/unittests/resources/map/maplayer/drawfringenormal.cc
index 963084f8b..c94429a0f 100644
--- a/src/unittests/resources/map/maplayer/drawfringenormal.cc
+++ b/src/unittests/resources/map/maplayer/drawfringenormal.cc
@@ -514,13 +514,13 @@ TEST_CASE("MapLayer drawFringe normal", "")
REQUIRE(mock->mDraws[7].image == img1);
}
- delete2(localPlayer);
+ delete2(localPlayer)
delete map;
delete img1;
delete img2;
delete img3;
delete mock;
- delete2(theme);
+ delete2(theme)
GraphicsManager::deleteRenderers();
ResourceManager::cleanOrphans(true);
ResourceManager::deleteInstance();
diff --git a/src/unittests/resources/map/maplayer/drawfringesimple.cc b/src/unittests/resources/map/maplayer/drawfringesimple.cc
index c1d1e858a..6fded0f43 100644
--- a/src/unittests/resources/map/maplayer/drawfringesimple.cc
+++ b/src/unittests/resources/map/maplayer/drawfringesimple.cc
@@ -492,13 +492,13 @@ TEST_CASE("MapLayer drawFringe simple", "")
REQUIRE(mock->mDraws[1].image == img2);
}
- delete2(localPlayer);
+ delete2(localPlayer)
delete map;
delete img1;
delete img2;
delete img3;
delete mock;
- delete2(theme);
+ delete2(theme)
GraphicsManager::deleteRenderers();
ResourceManager::cleanOrphans(true);
ResourceManager::deleteInstance();
diff --git a/src/unittests/resources/map/speciallayer.cc b/src/unittests/resources/map/speciallayer.cc
index 17f7e18b9..892d20737 100644
--- a/src/unittests/resources/map/speciallayer.cc
+++ b/src/unittests/resources/map/speciallayer.cc
@@ -280,9 +280,9 @@ TEST_CASE("SpecialLayer updateCache", "")
delete layer;
ResourceManager::cleanOrphans(false);
- delete2(userPalette);
- delete2(theme);
- delete2(client);
+ delete2(userPalette)
+ delete2(theme)
+ delete2(client)
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
}
diff --git a/src/unittests/resources/resourcemanager/resourcemanager.cc b/src/unittests/resources/resourcemanager/resourcemanager.cc
index d40b197d1..6bb03ecb5 100644
--- a/src/unittests/resources/resourcemanager/resourcemanager.cc
+++ b/src/unittests/resources/resourcemanager/resourcemanager.cc
@@ -685,9 +685,9 @@ TEST_CASE("resourcemanager", "resourcemanager")
REQUIRE(ResourceManager::getDeletedResources().empty() == true);
}
- delete2(userPalette);
- delete2(theme);
- delete2(client);
+ delete2(userPalette)
+ delete2(theme)
+ delete2(client)
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
}
diff --git a/src/unittests/resources/sdlimagehelper.cc b/src/unittests/resources/sdlimagehelper.cc
index cb20801fc..dad9ddc0e 100644
--- a/src/unittests/resources/sdlimagehelper.cc
+++ b/src/unittests/resources/sdlimagehelper.cc
@@ -548,9 +548,9 @@ TEST_CASE("sdlimagehelper combineSurface", "")
MSDL_FreeSurface(surface2);
}
- delete2(userPalette);
- delete2(theme);
- delete2(client);
+ delete2(userPalette)
+ delete2(theme)
+ delete2(client)
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
}
diff --git a/src/unittests/resources/sprite/animatedsprite.cc b/src/unittests/resources/sprite/animatedsprite.cc
index 33b5529b2..376dfb79d 100644
--- a/src/unittests/resources/sprite/animatedsprite.cc
+++ b/src/unittests/resources/sprite/animatedsprite.cc
@@ -192,7 +192,7 @@ TEST_CASE("AnimatedSprite tests", "animatedsprite")
delete sprite2;
}
- delete2(client);
+ delete2(client)
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
}