summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-22 22:35:19 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-22 22:35:19 +0300
commit67fc3968fed2fae2886a6185039b856ffacb3c84 (patch)
tree95e5ddd0b7ed43b7b3d61974195199e955442f21 /src
parentc8c6a0f62f313ef52be214e3851f6a5bc580b039 (diff)
downloadplus-67fc3968fed2fae2886a6185039b856ffacb3c84.tar.gz
plus-67fc3968fed2fae2886a6185039b856ffacb3c84.tar.bz2
plus-67fc3968fed2fae2886a6185039b856ffacb3c84.tar.xz
plus-67fc3968fed2fae2886a6185039b856ffacb3c84.zip
Remove default parameters from socialwindow.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/socialwindow.h3
-rw-r--r--src/net/eathena/guildrecv.cpp2
-rw-r--r--src/net/tmwa/guildmanager.cpp6
3 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/windows/socialwindow.h b/src/gui/windows/socialwindow.h
index 2abee7170..394fdf9d6 100644
--- a/src/gui/windows/socialwindow.h
+++ b/src/gui/windows/socialwindow.h
@@ -123,7 +123,8 @@ class SocialWindow final : public Window,
void updateMenu(const SocialTab *const tab,
const std::string &menu);
- void updateGuildCounter(const int online = 0, const int total = 0);
+ void updateGuildCounter(const int online,
+ const int total);
void updatedPlayer(const std::string &name) override final;
diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp
index c0be1be01..cf2a5a3dd 100644
--- a/src/net/eathena/guildrecv.cpp
+++ b/src/net/eathena/guildrecv.cpp
@@ -679,7 +679,7 @@ void GuildRecv::processGuildMemberLogin(Net::MessageIn &msg)
if (guildTab != nullptr)
guildTab->showOnline(m->getName(), fromBool(online, Online));
if (socialWindow != nullptr)
- socialWindow->updateGuildCounter();
+ socialWindow->updateGuildCounter(0, 0);
}
}
}
diff --git a/src/net/tmwa/guildmanager.cpp b/src/net/tmwa/guildmanager.cpp
index df73a6c40..2e33e3372 100644
--- a/src/net/tmwa/guildmanager.cpp
+++ b/src/net/tmwa/guildmanager.cpp
@@ -221,7 +221,7 @@ void GuildManager::updateList()
actorManager->updatePlayerColors();
}
if (socialWindow != nullptr)
- socialWindow->updateGuildCounter();
+ socialWindow->updateGuildCounter(0, 0);
}
mTempList.clear();
mSentInfoRequest = false;
@@ -285,7 +285,7 @@ bool GuildManager::process(std::string msg)
if (mTab != nullptr)
mTab->showOnline(msg, Online_false);
if (socialWindow != nullptr)
- socialWindow->updateGuildCounter();
+ socialWindow->updateGuildCounter(0, 0);
return true;
}
else if (!haveNick && findCutLast(msg, " is now Online."))
@@ -305,7 +305,7 @@ bool GuildManager::process(std::string msg)
if (mTab != nullptr)
mTab->showOnline(msg, Online_true);
if (socialWindow != nullptr)
- socialWindow->updateGuildCounter();
+ socialWindow->updateGuildCounter(0, 0);
return true;
}
else if (findCutFirst(msg, "Welcome to the "))