summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-10-16 01:03:02 +0300
committerAndrei Karas <akaras@inbox.ru>2019-10-16 01:03:02 +0300
commite15da561988948de26c80105dc9762943009b9e7 (patch)
tree717dbdffe08daf6a1832ce79043697d3f7e62a23 /src/net/tmwa
parent71cfaf012217cf3bbbc39207a12131b748535fcc (diff)
downloadplus-e15da561988948de26c80105dc9762943009b9e7.tar.gz
plus-e15da561988948de26c80105dc9762943009b9e7.tar.bz2
plus-e15da561988948de26c80105dc9762943009b9e7.tar.xz
plus-e15da561988948de26c80105dc9762943009b9e7.zip
Fix code style, ignore some warning in clang-tidy
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/guildmanager.cpp4
-rw-r--r--src/net/tmwa/guildmanager.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/guildmanager.cpp b/src/net/tmwa/guildmanager.cpp
index c0834a6bd..a845bbb2e 100644
--- a/src/net/tmwa/guildmanager.cpp
+++ b/src/net/tmwa/guildmanager.cpp
@@ -129,7 +129,7 @@ void GuildManager::chat(const std::string &msg)
mTab->chatLog(localPlayer->getName(), msg);
}
-void GuildManager::getNames(StringVect &names) const
+void GuildManager::getNames(StringVect &names)
{
const Guild *const guild = createGuild();
if (guild != nullptr)
@@ -240,7 +240,7 @@ void GuildManager::createTab(Guild *const guild)
}
}
-Guild *GuildManager::createGuild() const
+Guild *GuildManager::createGuild()
{
Guild *const guild = Guild::getGuild(1);
if (guild == nullptr)
diff --git a/src/net/tmwa/guildmanager.h b/src/net/tmwa/guildmanager.h
index 1a089d342..7c5a8fd32 100644
--- a/src/net/tmwa/guildmanager.h
+++ b/src/net/tmwa/guildmanager.h
@@ -46,7 +46,7 @@ class GuildManager final
static void send(const std::string &msg);
- void getNames(StringVect &names) const;
+ static void getNames(StringVect &names);
void requestGuildInfo();
@@ -65,7 +65,7 @@ class GuildManager final
void createTab(Guild *const guild);
- Guild *createGuild() const A_WARN_UNUSED;
+ static Guild *createGuild() A_WARN_UNUSED;
static void clear();