summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/character.h2
-rw-r--r--src/net/ea/inventoryhandler.cpp4
-rw-r--r--src/net/ea/inventoryrecv.cpp2
-rw-r--r--src/net/ea/network.cpp6
-rw-r--r--src/net/ea/partyhandler.cpp2
-rw-r--r--src/net/eathena/beingrecv.cpp2
-rw-r--r--src/net/eathena/buysellrecv.cpp2
-rw-r--r--src/net/eathena/clanrecv.cpp6
-rw-r--r--src/net/eathena/elementalrecv.cpp4
-rw-r--r--src/net/eathena/generalhandler.cpp84
-rw-r--r--src/net/eathena/guildhandler.cpp2
-rw-r--r--src/net/eathena/guildrecv.cpp2
-rw-r--r--src/net/eathena/mail2handler.cpp2
-rw-r--r--src/net/eathena/mail2recv.cpp28
-rw-r--r--src/net/eathena/mailrecv.cpp6
-rw-r--r--src/net/eathena/mercenaryrecv.cpp4
-rw-r--r--src/net/eathena/network.cpp4
-rw-r--r--src/net/eathena/partyrecv.cpp2
-rw-r--r--src/net/eathena/playerrecv.cpp4
-rw-r--r--src/net/ipc.cpp4
-rw-r--r--src/net/net.cpp4
-rw-r--r--src/net/packetlimiter.cpp2
-rw-r--r--src/net/tmwa/buysellrecv.cpp2
-rw-r--r--src/net/tmwa/generalhandler.cpp82
-rw-r--r--src/net/tmwa/guildmanager.cpp8
25 files changed, 135 insertions, 135 deletions
diff --git a/src/net/character.h b/src/net/character.h
index 3041c37a6..3c0c8f534 100644
--- a/src/net/character.h
+++ b/src/net/character.h
@@ -49,7 +49,7 @@ struct Character final
~Character()
{
- delete2(dummy);
+ delete2(dummy)
}
LocalPlayer *dummy; /**< A dummy representing this character */
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index faed9df20..848b8db91 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -52,12 +52,12 @@ InventoryHandler::~InventoryHandler()
storageWindow = nullptr;
}
- delete2(InventoryRecv::mStorage);
+ delete2(InventoryRecv::mStorage)
}
void InventoryHandler::clear() const
{
- delete2(InventoryRecv::mStorage);
+ delete2(InventoryRecv::mStorage)
}
bool InventoryHandler::canSplit(const Item *const item A_UNUSED) const
diff --git a/src/net/ea/inventoryrecv.cpp b/src/net/ea/inventoryrecv.cpp
index 2e6a7e2ac..f95d0d40d 100644
--- a/src/net/ea/inventoryrecv.cpp
+++ b/src/net/ea/inventoryrecv.cpp
@@ -137,7 +137,7 @@ void InventoryRecv::processPlayerStorageClose(Net::MessageIn &msg A_UNUSED)
if (mStorage != nullptr)
mStorage->clear();
- delete2(mStorage);
+ delete2(mStorage)
BLOCK_END("InventoryRecv::processPlayerStorageClose")
}
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp
index 11a0757f1..4a4c3d0df 100644
--- a/src/net/ea/network.cpp
+++ b/src/net/ea/network.cpp
@@ -90,9 +90,9 @@ Network::~Network()
SDL_DestroyMutex(mMutexOut);
mMutexOut = nullptr;
- delete2Arr(mInBuffer);
- delete2Arr(mOutBuffer);
- delete2Arr(mPackets);
+ delete2Arr(mInBuffer)
+ delete2Arr(mOutBuffer)
+ delete2Arr(mPackets)
TcpNet::quit();
}
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index 715073a46..651d29be5 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -44,7 +44,7 @@ PartyHandler::PartyHandler() :
PartyHandler::~PartyHandler()
{
- delete2(partyTab);
+ delete2(partyTab)
taParty = nullptr;
}
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index ec7f4dc09..dc6a503bf 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -189,7 +189,7 @@ static void setBasicFields(Being *restrict const dstBeing,
case ActorType::Avatar:
case ActorType::Unknown:
reportAlways("Wrong being type detected: %d",
- CAST_S32(actorType));
+ CAST_S32(actorType))
break;
}
}
diff --git a/src/net/eathena/buysellrecv.cpp b/src/net/eathena/buysellrecv.cpp
index 9bb91520b..7f71a41ab 100644
--- a/src/net/eathena/buysellrecv.cpp
+++ b/src/net/eathena/buysellrecv.cpp
@@ -137,7 +137,7 @@ void BuySellRecv::processNpcBuyResponse(Net::MessageIn &msg)
default:
NotifyManager::notify(NotifyTypes::BUY_FAILED);
break;
- };
+ }
}
} // namespace EAthena
diff --git a/src/net/eathena/clanrecv.cpp b/src/net/eathena/clanrecv.cpp
index c2c5680db..e84ac7d3d 100644
--- a/src/net/eathena/clanrecv.cpp
+++ b/src/net/eathena/clanrecv.cpp
@@ -66,7 +66,7 @@ void ClanRecv::processClanInfo(Net::MessageIn &msg)
if (info == nullptr)
{
reportAlways("missing clan %d in clandb",
- localClan.id);
+ localClan.id)
}
else
{
@@ -85,7 +85,7 @@ void ClanRecv::processClanOnlineCount(Net::MessageIn &msg)
void ClanRecv::processClanLeave(Net::MessageIn &msg A_UNUSED)
{
- delete2(clanTab);
+ delete2(clanTab)
localClan.clear();
clanWindow->resetClan();
}
@@ -99,7 +99,7 @@ void ClanRecv::processClanChat(Net::MessageIn &msg)
std::string chatMsg = msg.readString(chatMsgLength, "message");
if (clanTab == nullptr)
{
- reportAlways("received clan chat messages without clan.");
+ reportAlways("received clan chat messages without clan.")
return;
}
const size_t pos = chatMsg.find(" : ", 0);
diff --git a/src/net/eathena/elementalrecv.cpp b/src/net/eathena/elementalrecv.cpp
index 9d97b10b7..071a74c79 100644
--- a/src/net/eathena/elementalrecv.cpp
+++ b/src/net/eathena/elementalrecv.cpp
@@ -38,7 +38,7 @@ namespace EAthena
PlayerInfo::setStatBase(stat, \
val, \
Notify_true); \
- break;
+ break
void ElementalRecv::processElementalUpdateStatus(Net::MessageIn &msg)
{
@@ -52,7 +52,7 @@ void ElementalRecv::processElementalUpdateStatus(Net::MessageIn &msg)
setElementalStat(Sp::MAXSP, Attributes::ELEMENTAL_MAX_MP);
default:
reportAlways("Unknown elemental stat %d",
- sp);
+ sp)
break;
}
}
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp
index 940a27fd8..8c1063b84 100644
--- a/src/net/eathena/generalhandler.cpp
+++ b/src/net/eathena/generalhandler.cpp
@@ -126,46 +126,46 @@ GeneralHandler::GeneralHandler() :
GeneralHandler::~GeneralHandler()
{
- delete2(Network::mInstance);
+ delete2(Network::mInstance)
- delete2(mAdminHandler);
- delete2(mBeingHandler);
- delete2(mBuySellHandler);
- delete2(mCharServerHandler);
- delete2(mChatHandler);
- delete2(mClanHandler);
- delete2(mGameHandler);
- delete2(mGuildHandler);
- delete2(mInventoryHandler);
- delete2(mItemHandler);
- delete2(mLoginHandler);
- delete2(mNpcHandler);
- delete2(mPartyHandler);
- delete2(mPetHandler);
- delete2(mPlayerHandler);
- delete2(mSkillHandler);
- delete2(mTradeHandler);
- delete2(mQuestHandler);
- delete2(mServerFeatures);
- delete2(mMail2Handler);
- delete2(mMailHandler);
- delete2(mAuctionHandler);
- delete2(mAchievementHandler);
- delete2(mAttendanceHandler);
- delete2(mCashShopHandler);
- delete2(mFamilyHandler);
- delete2(mBankHandler);
- delete2(mBattleGroundHandler);
- delete2(mMercenaryHandler);
- delete2(mBuyingStoreHandler);
- delete2(mHomunculusHandler);
- delete2(mFriendsHandler);
- delete2(mElementalHandler);
- delete2(mMapHandler);
- delete2(mMarketHandler);
- delete2(mVendingHandler);
- delete2(mRouletteHandler);
- delete2(mSearchStoreHandler);
+ delete2(mAdminHandler)
+ delete2(mBeingHandler)
+ delete2(mBuySellHandler)
+ delete2(mCharServerHandler)
+ delete2(mChatHandler)
+ delete2(mClanHandler)
+ delete2(mGameHandler)
+ delete2(mGuildHandler)
+ delete2(mInventoryHandler)
+ delete2(mItemHandler)
+ delete2(mLoginHandler)
+ delete2(mNpcHandler)
+ delete2(mPartyHandler)
+ delete2(mPetHandler)
+ delete2(mPlayerHandler)
+ delete2(mSkillHandler)
+ delete2(mTradeHandler)
+ delete2(mQuestHandler)
+ delete2(mServerFeatures)
+ delete2(mMail2Handler)
+ delete2(mMailHandler)
+ delete2(mAuctionHandler)
+ delete2(mAchievementHandler)
+ delete2(mAttendanceHandler)
+ delete2(mCashShopHandler)
+ delete2(mFamilyHandler)
+ delete2(mBankHandler)
+ delete2(mBattleGroundHandler)
+ delete2(mMercenaryHandler)
+ delete2(mBuyingStoreHandler)
+ delete2(mHomunculusHandler)
+ delete2(mFriendsHandler)
+ delete2(mElementalHandler)
+ delete2(mMapHandler)
+ delete2(mMarketHandler)
+ delete2(mVendingHandler)
+ delete2(mRouletteHandler)
+ delete2(mSearchStoreHandler)
}
void GeneralHandler::load() const
@@ -249,9 +249,9 @@ void GeneralHandler::gameEnded() const
socialWindow->removeTab(Ea::taParty);
}
- delete2(guildTab);
- delete2(partyTab);
- delete2(clanTab);
+ delete2(guildTab)
+ delete2(partyTab)
+ delete2(clanTab)
}
} // namespace EAthena
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp
index 3cd3c2fba..320894d22 100644
--- a/src/net/eathena/guildhandler.cpp
+++ b/src/net/eathena/guildhandler.cpp
@@ -52,7 +52,7 @@ GuildHandler::GuildHandler() :
GuildHandler::~GuildHandler()
{
- delete2(guildTab);
+ delete2(guildTab)
guildHandler = nullptr;
taGuild = nullptr;
}
diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp
index b5450e1aa..81010a230 100644
--- a/src/net/eathena/guildrecv.cpp
+++ b/src/net/eathena/guildrecv.cpp
@@ -208,7 +208,7 @@ void GuildRecv::processGuildMemberList(Net::MessageIn &msg)
if (msg.getVersion() >= 20161026)
{
guildSize = 34;
- reportAlways("missing guild member names");
+ reportAlways("missing guild member names")
}
else
{
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp
index 7097333bc..3a0c99ac0 100644
--- a/src/net/eathena/mail2handler.cpp
+++ b/src/net/eathena/mail2handler.cpp
@@ -108,7 +108,7 @@ void Mail2Handler::sendMail(const std::string &to,
int32_t sz = 2 + 2 + 24 + 24 + 8 + 2 + 2 + titleSz + bodySz;
if (sz > 32767 - 4)
{
- reportAlways("Mail message too big");
+ reportAlways("Mail message too big")
return;
}
if (packetVersion >= 20160600)
diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp
index d22bc211e..2cb585829 100644
--- a/src/net/eathena/mail2recv.cpp
+++ b/src/net/eathena/mail2recv.cpp
@@ -104,14 +104,14 @@ void Mail2Recv::processAddItemResult(Net::MessageIn &msg)
if (mailEditWindow == nullptr)
{
- reportAlways("Mail edit window not created");
+ reportAlways("Mail edit window not created")
delete options;
return;
}
Inventory *const inventory = mailEditWindow->getInventory();
if (inventory == nullptr)
{
- reportAlways("Mail edit window inventory not exists");
+ reportAlways("Mail edit window inventory not exists")
delete options;
return;
}
@@ -189,7 +189,7 @@ void Mail2Recv::processRemoveItemResult(Net::MessageIn &msg)
const Inventory *const inv = PlayerInfo::getInventory();
if (inv == nullptr)
{
- reportAlways("Player inventory not exists");
+ reportAlways("Player inventory not exists")
return;
}
std::string itemName;
@@ -211,25 +211,25 @@ void Mail2Recv::processRemoveItemResult(Net::MessageIn &msg)
}
if (mailEditWindow == nullptr)
{
- reportAlways("Mail edit window not created");
+ reportAlways("Mail edit window not created")
return;
}
Inventory *const inventory = mailEditWindow->getInventory();
if (inventory == nullptr)
{
- reportAlways("Mail edit window inventory not exists");
+ reportAlways("Mail edit window inventory not exists")
return;
}
const int index2 = inventory->findIndexByTag(index);
if (index2 == -1)
{
- reportAlways("Item not exists in mail edit window.");
+ reportAlways("Item not exists in mail edit window.")
return;
}
Item *const item = inventory->getItem(index2);
if (item == nullptr)
{
- reportAlways("Item not exists.");
+ reportAlways("Item not exists.")
return;
}
@@ -248,7 +248,7 @@ void Mail2Recv::processCheckNameResult(Net::MessageIn &msg)
if (mMailQueue.empty())
{
reportAlways("Mail2Recv::processCheckNameResult no names in queue."
- "Char id: %d", charId);
+ "Char id: %d", charId)
return;
}
MailQueue *const mail = mMailQueue.front();
@@ -272,7 +272,7 @@ void Mail2Recv::processCheckNameResult(Net::MessageIn &msg)
case MailQueueType::EditMail:
if (mailWindow == nullptr)
{
- reportAlways("Mail window not created");
+ reportAlways("Mail window not created")
}
else
{
@@ -282,7 +282,7 @@ void Mail2Recv::processCheckNameResult(Net::MessageIn &msg)
case MailQueueType::ValidateTo:
if (mailEditWindow == nullptr)
{
- reportAlways("Mail edit window not created");
+ reportAlways("Mail edit window not created")
}
else
{
@@ -291,7 +291,7 @@ void Mail2Recv::processCheckNameResult(Net::MessageIn &msg)
break;
case MailQueueType::Unknown:
default:
- reportAlways("Not implemented yet.");
+ reportAlways("Not implemented yet.")
break;
}
delete mail;
@@ -329,7 +329,7 @@ void Mail2Recv::processMailListPage(Net::MessageIn &msg)
{
if (mailWindow == nullptr)
{
- reportAlways("mail window not created");
+ reportAlways("mail window not created")
return;
}
msg.readInt16("len");
@@ -405,7 +405,7 @@ void Mail2Recv::processReadMail(Net::MessageIn &msg)
if (mail == nullptr)
{
- reportAlways("Mail message not found");
+ reportAlways("Mail message not found")
for (int f = 0; f < itemsCount; f ++)
{
msg.readInt16("amount");
@@ -490,7 +490,7 @@ void Mail2Recv::processMailDelete(Net::MessageIn &msg)
const int64_t mailId = msg.readInt64("mail id");
if (mailWindow == nullptr)
{
- reportAlways("Mail window not created.");
+ reportAlways("Mail window not created.")
return;
}
mailWindow->removeMail(mailId);
diff --git a/src/net/eathena/mailrecv.cpp b/src/net/eathena/mailrecv.cpp
index 94e6c6fb9..d759e0fa3 100644
--- a/src/net/eathena/mailrecv.cpp
+++ b/src/net/eathena/mailrecv.cpp
@@ -122,21 +122,21 @@ void MailRecv::processReadMail(Net::MessageIn &msg)
mail->strTime = timeToStr(mail->time);
if (mailWindow == nullptr)
{
- reportAlways("Mail window not created");
+ reportAlways("Mail window not created")
delete mail;
return;
}
mailWindow->showMessage(mail, itemId != 0 ? 1 : 0);
if (mailViewWindow == nullptr)
{
- reportAlways("Mail view window not created");
+ reportAlways("Mail view window not created")
return;
}
Inventory *const inventory = mailViewWindow->getInventory();
if (inventory == nullptr)
{
- reportAlways("Mail view window missing inventory");
+ reportAlways("Mail view window missing inventory")
return;
}
diff --git a/src/net/eathena/mercenaryrecv.cpp b/src/net/eathena/mercenaryrecv.cpp
index bd4579c83..e9d351b37 100644
--- a/src/net/eathena/mercenaryrecv.cpp
+++ b/src/net/eathena/mercenaryrecv.cpp
@@ -47,7 +47,7 @@ namespace EAthena
PlayerInfo::setStatBase(stat, \
val, \
Notify_true); \
- break;
+ break
void MercenaryRecv::processMercenaryUpdate(Net::MessageIn &msg)
{
@@ -71,7 +71,7 @@ void MercenaryRecv::processMercenaryUpdate(Net::MessageIn &msg)
setMercStat(Sp::MERCFAITH, Attributes::MERC_FAITH);
default:
reportAlways("Unknown mercenary stat %d",
- sp);
+ sp)
break;
}
}
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp
index c183d842c..9fcccb378 100644
--- a/src/net/eathena/network.cpp
+++ b/src/net/eathena/network.cpp
@@ -133,7 +133,7 @@ void Network::registerFakeHandlers()
const size_t id = (*it).first;
if (id >= packet_lengths_size)
{
- reportAlways("Wrong fake packet id %d", CAST_S32(id));
+ reportAlways("Wrong fake packet id %d", CAST_S32(id))
continue;
}
if (mPackets[id].len != 0 ||
@@ -159,7 +159,7 @@ void Network::registerFakeHandlers()
const size_t id = *it;
if (id >= packet_lengths_size)
{
- reportAlways("Wrong remove packet id %d", CAST_S32(id));
+ reportAlways("Wrong remove packet id %d", CAST_S32(id))
continue;
}
if (mPackets[id].len == 0 &&
diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp
index 21b97dfad..026dafbfc 100644
--- a/src/net/eathena/partyrecv.cpp
+++ b/src/net/eathena/partyrecv.cpp
@@ -117,7 +117,7 @@ void PartyRecv::processPartyMemberJobLevel(Net::MessageIn &msg)
}
else
{
- reportAlways("processPartyMemberJobLevel: party member not exists.");
+ reportAlways("processPartyMemberJobLevel: party member not exists.")
}
}
diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp
index 32336249d..da3e35a0d 100644
--- a/src/net/eathena/playerrecv.cpp
+++ b/src/net/eathena/playerrecv.cpp
@@ -507,7 +507,7 @@ void PlayerRecv::processKilledBy(Net::MessageIn &msg)
{
debugMsg(
// TRANSLATORS: player killed message
- _("You were killed by unknown source."));
+ _("You were killed by unknown source."))
}
else
{
@@ -519,7 +519,7 @@ void PlayerRecv::processKilledBy(Net::MessageIn &msg)
debugMsg(strprintf(
// TRANSLATORS: player killed message
_("You were killed by %s."),
- name.c_str()));
+ name.c_str()))
}
}
diff --git a/src/net/ipc.cpp b/src/net/ipc.cpp
index 2b4573cba..324ad4565 100644
--- a/src/net/ipc.cpp
+++ b/src/net/ipc.cpp
@@ -156,7 +156,7 @@ void IPC::stop()
return;
logger->log("Stopping IPC...");
- delete2(ipc);
+ delete2(ipc)
}
void IPC::start()
@@ -183,7 +183,7 @@ void IPC::start()
port ++;
}
- delete2(ipc);
+ delete2(ipc)
}
void IPC::flush()
diff --git a/src/net/net.cpp b/src/net/net.cpp
index f9422c367..98e81576c 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -136,7 +136,7 @@ void connectToServer(const ServerInfo &server)
generalHandler != nullptr)
{
generalHandler->unload();
- delete2(generalHandler);
+ delete2(generalHandler)
}
switch (server.type)
@@ -178,7 +178,7 @@ void unload()
if (handler != nullptr)
handler->unload();
ignorePackets.clear();
- delete2(generalHandler);
+ delete2(generalHandler)
}
ServerTypeT getNetworkType()
diff --git a/src/net/packetlimiter.cpp b/src/net/packetlimiter.cpp
index 50279b22c..dbf29ffd7 100644
--- a/src/net/packetlimiter.cpp
+++ b/src/net/packetlimiter.cpp
@@ -230,7 +230,7 @@ void PacketLimiter::writePacketLimits(const std::string &packetLimitsName)
if (!outPacketFile.is_open())
{
reportAlways("Error opening file for writing: %s",
- packetLimitsName.c_str());
+ packetLimitsName.c_str())
outPacketFile.close();
return;
}
diff --git a/src/net/tmwa/buysellrecv.cpp b/src/net/tmwa/buysellrecv.cpp
index b30ebc501..17568c756 100644
--- a/src/net/tmwa/buysellrecv.cpp
+++ b/src/net/tmwa/buysellrecv.cpp
@@ -117,7 +117,7 @@ void BuySellRecv::processNpcBuyResponse(Net::MessageIn &msg)
default:
NotifyManager::notify(NotifyTypes::BUY_FAILED);
break;
- };
+ }
}
} // namespace TmwAthena
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index 99865f61d..57509a717 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -125,46 +125,46 @@ GeneralHandler::GeneralHandler() :
GeneralHandler::~GeneralHandler()
{
- delete2(Network::mInstance);
-
- delete2(mAdminHandler);
- delete2(mBeingHandler);
- delete2(mBuySellHandler);
- delete2(mCharServerHandler);
- delete2(mChatHandler);
- delete2(mClanHandler);
- delete2(mGameHandler);
- delete2(mGuildHandler);
- delete2(mInventoryHandler);
- delete2(mItemHandler);
- delete2(mLoginHandler);
- delete2(mNpcHandler);
- delete2(mPartyHandler);
- delete2(mPetHandler);
- delete2(mPlayerHandler);
- delete2(mSkillHandler);
- delete2(mTradeHandler);
- delete2(mQuestHandler);
- delete2(mServerFeatures);
- delete2(mAuctionHandler);
- delete2(mAchievementHandler);
- delete2(mAttendanceHandler);
- delete2(mBankHandler);
- delete2(mBattleGroundHandler);
- delete2(mBuyingStoreHandler);
- delete2(mCashShopHandler);
- delete2(mElementalHandler);
- delete2(mFamilyHandler);
- delete2(mFriendsHandler);
- delete2(mHomunculusHandler);
- delete2(mMail2Handler);
- delete2(mMailHandler);
- delete2(mMapHandler);
- delete2(mMarketHandler);
- delete2(mMercenaryHandler);
- delete2(mRouletteHandler);
- delete2(mSearchStoreHandler);
- delete2(mVendingHandler);
+ delete2(Network::mInstance)
+
+ delete2(mAdminHandler)
+ delete2(mBeingHandler)
+ delete2(mBuySellHandler)
+ delete2(mCharServerHandler)
+ delete2(mChatHandler)
+ delete2(mClanHandler)
+ delete2(mGameHandler)
+ delete2(mGuildHandler)
+ delete2(mInventoryHandler)
+ delete2(mItemHandler)
+ delete2(mLoginHandler)
+ delete2(mNpcHandler)
+ delete2(mPartyHandler)
+ delete2(mPetHandler)
+ delete2(mPlayerHandler)
+ delete2(mSkillHandler)
+ delete2(mTradeHandler)
+ delete2(mQuestHandler)
+ delete2(mServerFeatures)
+ delete2(mAuctionHandler)
+ delete2(mAchievementHandler)
+ delete2(mAttendanceHandler)
+ delete2(mBankHandler)
+ delete2(mBattleGroundHandler)
+ delete2(mBuyingStoreHandler)
+ delete2(mCashShopHandler)
+ delete2(mElementalHandler)
+ delete2(mFamilyHandler)
+ delete2(mFriendsHandler)
+ delete2(mHomunculusHandler)
+ delete2(mMail2Handler)
+ delete2(mMailHandler)
+ delete2(mMapHandler)
+ delete2(mMarketHandler)
+ delete2(mMercenaryHandler)
+ delete2(mRouletteHandler)
+ delete2(mSearchStoreHandler)
+ delete2(mVendingHandler)
}
void GeneralHandler::load() const
@@ -249,7 +249,7 @@ void GeneralHandler::gameEnded() const
if (socialWindow != nullptr)
socialWindow->removeTab(Ea::taParty);
- delete2(partyTab);
+ delete2(partyTab)
}
} // namespace TmwAthena
diff --git a/src/net/tmwa/guildmanager.cpp b/src/net/tmwa/guildmanager.cpp
index b491b250d..aaf8562ac 100644
--- a/src/net/tmwa/guildmanager.cpp
+++ b/src/net/tmwa/guildmanager.cpp
@@ -66,7 +66,7 @@ GuildManager::GuildManager() :
GuildManager::~GuildManager()
{
- delete2(mTab);
+ delete2(mTab)
}
void GuildManager::init()
@@ -90,7 +90,7 @@ void GuildManager::init()
}
else if (guildManager != nullptr)
{
- delete2(guildManager);
+ delete2(guildManager)
}
}
@@ -112,7 +112,7 @@ void GuildManager::reload()
if ((guild != nullptr) && (socialWindow != nullptr))
socialWindow->removeTab(guild);
}
- delete2(mTab);
+ delete2(mTab)
}
void GuildManager::send(const std::string &msg)
@@ -528,7 +528,7 @@ bool GuildManager::afterRemove()
localPlayer->clearGuilds();
}
NotifyManager::notify(NotifyTypes::GUILD_LEFT);
- delete2(mTab);
+ delete2(mTab)
if (socialWindow != nullptr)
socialWindow->removeTab(guild);