diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-26 00:51:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-27 20:33:15 +0300 |
commit | 0c20db8d108c4123fcc3ecb343759e68567a4d4e (patch) | |
tree | f577edeae7b4866d68c084a1eaa229e98c80ea8f /src/unittests | |
parent | 2be4fc5b4eee97938657c9c8be73c4b91c8b9826 (diff) | |
download | mv-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.gz mv-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.bz2 mv-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.xz mv-0c20db8d108c4123fcc3ecb343759e68567a4d4e.zip |
Remove extra ; from different code.
Diffstat (limited to 'src/unittests')
-rw-r--r-- | src/unittests/gui/widgets/browserbox.cc | 2 | ||||
-rw-r--r-- | src/unittests/gui/widgets/staticbrowserbox.cc | 2 | ||||
-rw-r--r-- | src/unittests/gui/windowmanager.cc | 188 | ||||
-rw-r--r-- | src/unittests/integrity.cc | 4 | ||||
-rw-r--r-- | src/unittests/resources/dye/dye.cc | 6 | ||||
-rw-r--r-- | src/unittests/resources/dye/dyepalette.cc | 2 | ||||
-rw-r--r-- | src/unittests/resources/map/maplayer/drawfringenormal.cc | 4 | ||||
-rw-r--r-- | src/unittests/resources/map/maplayer/drawfringesimple.cc | 4 | ||||
-rw-r--r-- | src/unittests/resources/map/speciallayer.cc | 6 | ||||
-rw-r--r-- | src/unittests/resources/resourcemanager/resourcemanager.cc | 6 | ||||
-rw-r--r-- | src/unittests/resources/sdlimagehelper.cc | 6 | ||||
-rw-r--r-- | src/unittests/resources/sprite/animatedsprite.cc | 2 | ||||
-rw-r--r-- | src/unittests/sdl.cc | 6 | ||||
-rw-r--r-- | src/unittests/utils/chatutils.cc | 6 | ||||
-rw-r--r-- | src/unittests/utils/checkutils.cc | 4 | ||||
-rw-r--r-- | src/unittests/utils/itemxmlutils.cc | 12 | ||||
-rw-r--r-- | src/unittests/utils/translation/poparser.cc | 2 | ||||
-rw-r--r-- | src/unittests/utils/xml.cc | 4 | ||||
-rw-r--r-- | src/unittests/utils/xmlutils.cc | 18 |
19 files changed, 142 insertions, 142 deletions
diff --git a/src/unittests/gui/widgets/browserbox.cc b/src/unittests/gui/widgets/browserbox.cc index 2c0071313..a5e07a3ec 100644 --- a/src/unittests/gui/widgets/browserbox.cc +++ b/src/unittests/gui/widgets/browserbox.cc @@ -185,7 +185,7 @@ TEST_CASE("BrowserBox tests", "browserbox") delete Widget::getGloablFont(); Widget::setGlobalFont(nullptr); delete box; - delete2(client); + delete2(client) VirtFs::unmountDirSilent("data"); VirtFs::unmountDirSilent("../data"); } diff --git a/src/unittests/gui/widgets/staticbrowserbox.cc b/src/unittests/gui/widgets/staticbrowserbox.cc index 1dad81d84..41d4aab72 100644 --- a/src/unittests/gui/widgets/staticbrowserbox.cc +++ b/src/unittests/gui/widgets/staticbrowserbox.cc @@ -185,7 +185,7 @@ TEST_CASE("StaticBrowserBox tests", "browserbox") delete Widget::getGloablFont(); Widget::setGlobalFont(nullptr); delete box; - delete2(client); + delete2(client) VirtFs::unmountDirSilent("data"); VirtFs::unmountDirSilent("../data"); } diff --git a/src/unittests/gui/windowmanager.cc b/src/unittests/gui/windowmanager.cc index dbe7338a4..fa27e5dfd 100644 --- a/src/unittests/gui/windowmanager.cc +++ b/src/unittests/gui/windowmanager.cc @@ -218,7 +218,7 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV0(bankWindow, BankWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(bankWindow); + delete2(bankWindow) } SECTION("buyDialog1") { @@ -226,7 +226,7 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV0(dialog, BuyDialog); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("buyDialog2") { @@ -236,7 +236,7 @@ TEST_CASE("Windows tests", "windowmanager") DEFAULT_CURRENCY); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } #ifdef TMWA_SUPPORT SECTION("buyDialog3") @@ -247,7 +247,7 @@ TEST_CASE("Windows tests", "windowmanager") DEFAULT_CURRENCY); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } #endif // TMWA_SUPPORT SECTION("buyDialog4") @@ -266,9 +266,9 @@ TEST_CASE("Windows tests", "windowmanager") DEFAULT_CURRENCY); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); - delete2(being); - delete2(map); + delete2(dialog) + delete2(being) + delete2(map) } SECTION("BuyingStoreSellDialog") { @@ -277,7 +277,7 @@ TEST_CASE("Windows tests", "windowmanager") BeingId_zero, 0); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("BuySellDialog1") { @@ -285,7 +285,7 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV(dialog, BuySellDialog, BeingId_zero); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("BuySellDialog2") { @@ -293,7 +293,7 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV(dialog, BuySellDialog, "user"); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("ChangeEmailDialog") { @@ -302,7 +302,7 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV(dialog, ChangeEmailDialog, data); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("ChangePasswordDialog") { @@ -311,7 +311,7 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV(dialog, ChangePasswordDialog, data); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("CharSelectDialog") { @@ -320,7 +320,7 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV(dialog, CharSelectDialog, data); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("CharCreateDialog") { @@ -332,8 +332,8 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV(dialog, CharCreateDialog, dialog2, 0); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); - delete2(dialog2); + delete2(dialog) + delete2(dialog2) */ } SECTION("ChatWindow") @@ -342,14 +342,14 @@ TEST_CASE("Windows tests", "windowmanager") "Chat"); gui->draw(); mainGraphics->updateScreen(); - delete2(chatWindow); + delete2(chatWindow) } SECTION("ClanWindow") { CREATEWIDGETV0(clanWindow, ClanWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(clanWindow); + delete2(clanWindow) } SECTION("ConfirmDialog") { @@ -358,14 +358,14 @@ TEST_CASE("Windows tests", "windowmanager") "", "", SOUND_REQUEST, false, Modal_false, nullptr); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("CutinWindow") { CREATEWIDGETV0(cutInWindow, CutInWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(cutInWindow); + delete2(cutInWindow) } SECTION("DebugWindow") { @@ -373,14 +373,14 @@ TEST_CASE("Windows tests", "windowmanager") "Debug"); gui->draw(); mainGraphics->updateScreen(); - delete2(debugWindow); + delete2(debugWindow) } SECTION("didYouKnowWindow") { CREATEWIDGETV0(didYouKnowWindow, DidYouKnowWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(didYouKnowWindow); + delete2(didYouKnowWindow) } SECTION("EditDialog") { @@ -389,7 +389,7 @@ TEST_CASE("Windows tests", "windowmanager") "", "", "", 100, nullptr, Modal_false); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("EditServerDialog") { @@ -402,22 +402,22 @@ TEST_CASE("Windows tests", "windowmanager") serverDialog, mCurrentServer, 0); gui->draw(); mainGraphics->updateScreen(); - delete2(editServerDialog); - delete2(serverDialog); + delete2(editServerDialog) + delete2(serverDialog) } SECTION("EggSelectionDialog") { EggSelectionDialog *dialog = CREATEWIDGETR0(EggSelectionDialog); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("EmoteWindow") { EmoteWindow *dialog = CREATEWIDGETR0(EmoteWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("EquipmentWindow") { @@ -431,17 +431,17 @@ TEST_CASE("Windows tests", "windowmanager") equipment, being, false); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); - delete2(being); - delete2(map); - delete2(equipment); + delete2(dialog) + delete2(being) + delete2(map) + delete2(equipment) } SECTION("helpWindow") { CREATEWIDGETV0(helpWindow, HelpWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(helpWindow); + delete2(helpWindow) } SECTION("InsertCardDialog") { @@ -459,8 +459,8 @@ TEST_CASE("Windows tests", "windowmanager") 0, item); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); - delete2(item); + delete2(dialog) + delete2(item) } SECTION("InventoryWindow") { @@ -469,8 +469,8 @@ TEST_CASE("Windows tests", "windowmanager") inventory); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); - delete2(inventory); + delete2(dialog) + delete2(inventory) } SECTION("ItemAmountWindow") { @@ -491,15 +491,15 @@ TEST_CASE("Windows tests", "windowmanager") 0); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); - delete2(item); + delete2(dialog) + delete2(item) } SECTION("KillStats") { CREATEWIDGETV0(killStats, KillStats); gui->draw(); mainGraphics->updateScreen(); - delete2(killStats); + delete2(killStats) } SECTION("loginDialog") { @@ -510,14 +510,14 @@ TEST_CASE("Windows tests", "windowmanager") &settings.options.updateHost); gui->draw(); mainGraphics->updateScreen(); - delete2(loginDialog); + delete2(loginDialog) } SECTION("MailEditWindow") { CREATEWIDGETV0(mailEditWindow, MailEditWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(mailEditWindow); + delete2(mailEditWindow) } SECTION("MailViewWindow") { @@ -527,7 +527,7 @@ TEST_CASE("Windows tests", "windowmanager") 1); gui->draw(); mainGraphics->updateScreen(); - delete2(mailViewWindow); + delete2(mailViewWindow) delete message; } SECTION("MailWindow") @@ -535,35 +535,35 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV0(mailWindow, MailWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(mailWindow); + delete2(mailWindow) } SECTION("Minimap") { CREATEWIDGETV0(minimap, Minimap); gui->draw(); mainGraphics->updateScreen(); - delete2(minimap); + delete2(minimap) } SECTION("MiniStatusWindow") { CREATEWIDGETV0(miniStatusWindow, MiniStatusWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(miniStatusWindow); + delete2(miniStatusWindow) } SECTION("NpcDialog") { NpcDialog *dialog = CREATEWIDGETR(NpcDialog, BeingId_zero); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("NpcSellDialog") { NpcSellDialog *dialog = CREATEWIDGETR(NpcSellDialog, BeingId_zero); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("OkDialog") { @@ -572,21 +572,21 @@ TEST_CASE("Windows tests", "windowmanager") ShowCenter_true, nullptr, 100); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("OutfitWindow") { CREATEWIDGETV0(outfitWindow, OutfitWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(outfitWindow); + delete2(outfitWindow) } SECTION("QuestsWindow") { CREATEWIDGETV0(questsWindow, QuestsWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(questsWindow); + delete2(questsWindow) } SECTION("QuitDialog") { @@ -594,7 +594,7 @@ TEST_CASE("Windows tests", "windowmanager") &quitDialog); gui->draw(); mainGraphics->updateScreen(); - delete2(quitDialog); + delete2(quitDialog) } SECTION("RegisterDialog") { @@ -602,7 +602,7 @@ TEST_CASE("Windows tests", "windowmanager") loginData); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("serversDialog") { @@ -613,7 +613,7 @@ TEST_CASE("Windows tests", "windowmanager") settings.configDir); gui->draw(); mainGraphics->updateScreen(); - delete2(serverDialog); + delete2(serverDialog) } SECTION("serversInfoWindow") { @@ -622,14 +622,14 @@ TEST_CASE("Windows tests", "windowmanager") mCurrentServer); gui->draw(); mainGraphics->updateScreen(); - delete2(serverInfoWindow); + delete2(serverInfoWindow) } SECTION("setupWindow") { CREATEWIDGETV0(setupWindow, SetupWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(setupWindow); + delete2(setupWindow) } SECTION("ShopSellDialog") { @@ -640,7 +640,7 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV0(shopWindow, ShopWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(shopWindow); + delete2(shopWindow) } SECTION("ShortcutWindow1") { @@ -654,7 +654,7 @@ TEST_CASE("Windows tests", "windowmanager") 0); gui->draw(); mainGraphics->updateScreen(); - delete2(itemShortcutWindow); + delete2(itemShortcutWindow) } SECTION("ShortcutWindow2") { @@ -665,21 +665,21 @@ TEST_CASE("Windows tests", "windowmanager") 0); gui->draw(); mainGraphics->updateScreen(); - delete2(itemShortcutWindow); + delete2(itemShortcutWindow) } SECTION("SkillDialog") { CREATEWIDGETV0(skillDialog, SkillDialog); gui->draw(); mainGraphics->updateScreen(); - delete2(skillDialog); + delete2(skillDialog) } SECTION("SocialWindow") { CREATEWIDGETV0(socialWindow, SocialWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(socialWindow); + delete2(socialWindow) } SECTION("StatusWindow") { @@ -690,7 +690,7 @@ TEST_CASE("Windows tests", "windowmanager") CREATEWIDGETV0(statusWindow, StatusWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(statusWindow); + delete2(statusWindow) delete groups[0]; groups.clear(); } @@ -702,8 +702,8 @@ TEST_CASE("Windows tests", "windowmanager") textCommand); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); - delete2(textCommand); + delete2(dialog) + delete2(textCommand) } SECTION("TextDialog") @@ -712,7 +712,7 @@ TEST_CASE("Windows tests", "windowmanager") "", "", nullptr, false); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("TextSelectDialog") { @@ -720,14 +720,14 @@ TEST_CASE("Windows tests", "windowmanager") "", "", AllowQuit_false); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("TradeWindow") { CREATEWIDGETV0(tradeWindow, TradeWindow); gui->draw(); mainGraphics->updateScreen(); - delete2(tradeWindow); + delete2(tradeWindow) } SECTION("UpdaterWindow") { @@ -735,14 +735,14 @@ TEST_CASE("Windows tests", "windowmanager") "", "", false, UpdateType::Skip); gui->draw(); mainGraphics->updateScreen(); - delete2(updaterWindow); + delete2(updaterWindow) } SECTION("WhoIsOnline") { CREATEWIDGETV0(whoIsOnline, WhoIsOnline); gui->draw(); mainGraphics->updateScreen(); - delete2(whoIsOnline); + delete2(whoIsOnline) } SECTION("WorldSelectDialog") { @@ -751,77 +751,77 @@ TEST_CASE("Windows tests", "windowmanager") worlds); gui->draw(); mainGraphics->updateScreen(); - delete2(dialog); + delete2(dialog) } SECTION("popupMenu") { CREATEWIDGETV0(popupMenu, PopupMenu); gui->draw(); mainGraphics->updateScreen(); - delete2(popupMenu); + delete2(popupMenu) } SECTION("skillPopup") { CREATEWIDGETV0(skillPopup, SkillPopup); gui->draw(); mainGraphics->updateScreen(); - delete2(skillPopup); + delete2(skillPopup) } SECTION("SpeechBubble") { SpeechBubble *bubble = CREATEWIDGETR0(SpeechBubble); gui->draw(); mainGraphics->updateScreen(); - delete2(bubble); + delete2(bubble) } SECTION("beingPopup") { CREATEWIDGETV0(beingPopup, BeingPopup); gui->draw(); mainGraphics->updateScreen(); - delete2(beingPopup); + delete2(beingPopup) } SECTION("textPopup") { CREATEWIDGETV0(textPopup, TextPopup); gui->draw(); mainGraphics->updateScreen(); - delete2(textPopup); + delete2(textPopup) } SECTION("textBoxPopup") { CREATEWIDGETV0(textBoxPopup, TextBoxPopup); gui->draw(); mainGraphics->updateScreen(); - delete2(textBoxPopup); + delete2(textBoxPopup) } SECTION("itemPopup") { CREATEWIDGETV0(itemPopup, ItemPopup); gui->draw(); mainGraphics->updateScreen(); - delete2(itemPopup); + delete2(itemPopup) } SECTION("spellPopup") { CREATEWIDGETV0(spellPopup, SpellPopup); gui->draw(); mainGraphics->updateScreen(); - delete2(spellPopup); + delete2(spellPopup) } SECTION("StatusPopup") { StatusPopup *status = CREATEWIDGETR0(StatusPopup); gui->draw(); mainGraphics->updateScreen(); - delete2(status); + delete2(status) } SECTION("desktop") { CREATEWIDGETV(desktop, Desktop, nullptr); gui->draw(); mainGraphics->updateScreen(); - delete2(desktop); + delete2(desktop) } SECTION("connectionDialog") { @@ -831,18 +831,18 @@ TEST_CASE("Windows tests", "windowmanager") State::SWITCH_SERVER); gui->draw(); mainGraphics->updateScreen(); - delete2(connectionDialog); + delete2(connectionDialog) } UnitsDb::unload(); - delete2(localPlayer); - delete2(userPalette); - delete2(client); - delete2(serverFeatures); - delete2(inventoryHandler); - delete2(charServerHandler); - delete2(playerHandler); - delete2(gui); + delete2(localPlayer) + delete2(userPalette) + delete2(client) + delete2(serverFeatures) + delete2(inventoryHandler) + delete2(charServerHandler) + delete2(playerHandler) + delete2(gui) ResourceManager::deleteInstance(); VirtFs::unmountDirSilent("data"); VirtFs::unmountDirSilent("../data"); @@ -998,13 +998,13 @@ TEST_CASE("WindowManager", "create windows") settings.limitFps = true; UnitsDb::unload(); - delete2(localPlayer); - delete2(client); - delete2(serverFeatures); - delete2(inventoryHandler); - delete2(charServerHandler); - delete2(playerHandler); - delete2(gui); + delete2(localPlayer) + delete2(client) + delete2(serverFeatures) + delete2(inventoryHandler) + delete2(charServerHandler) + delete2(playerHandler) + delete2(gui) ResourceManager::deleteInstance(); VirtFs::unmountDirSilent("data"); VirtFs::unmountDirSilent("../data"); diff --git a/src/unittests/integrity.cc b/src/unittests/integrity.cc index b52d991a0..8b07d4732 100644 --- a/src/unittests/integrity.cc +++ b/src/unittests/integrity.cc @@ -352,8 +352,8 @@ TEST_CASE("integrity tests", "integrity") ResourceManager::cleanOrphans(true); - delete2(userPalette); - delete2(client); + delete2(userPalette) + delete2(client) VirtFs::unmountDirSilent("data"); VirtFs::unmountDirSilent("../data"); 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"); } diff --git a/src/unittests/sdl.cc b/src/unittests/sdl.cc index 54b415e66..c826fdfec 100644 --- a/src/unittests/sdl.cc +++ b/src/unittests/sdl.cc @@ -396,9 +396,9 @@ TEST_CASE("sdl tests", "sdl") } ResourceManager::cleanOrphans(true); - delete2(userPalette); - delete2(theme); - delete2(client); + delete2(userPalette) + delete2(theme) + delete2(client) VirtFs::unmountDirSilent("data"); VirtFs::unmountDirSilent("../data"); 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"); |