summaryrefslogtreecommitdiff
path: root/src/gui/windows
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/gui/windows
parent71cfaf012217cf3bbbc39207a12131b748535fcc (diff)
downloadManaVerse-e15da561988948de26c80105dc9762943009b9e7.tar.gz
ManaVerse-e15da561988948de26c80105dc9762943009b9e7.tar.bz2
ManaVerse-e15da561988948de26c80105dc9762943009b9e7.tar.xz
ManaVerse-e15da561988948de26c80105dc9762943009b9e7.zip
Fix code style, ignore some warning in clang-tidy
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/chatwindow.cpp4
-rw-r--r--src/gui/windows/chatwindow.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 0f0970c51..f96cf976d 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -253,7 +253,7 @@ void ChatWindow::loadCommandsFile(const std::string &name)
void ChatWindow::fillCommands()
{
loadCommandsFile("chatcommands.txt");
- inputManager.addChatCommands(mCommands);
+ InputManager::addChatCommands(mCommands);
}
void ChatWindow::loadGMCommands()
@@ -1531,7 +1531,7 @@ std::string ChatWindow::autoComplete(const StringVect &names,
}
std::string ChatWindow::autoComplete(const std::string &partName,
- const History *const words) const
+ const History *const words)
{
if (words == nullptr)
return "";
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h
index 8e3a3cec0..f40690c3d 100644
--- a/src/gui/windows/chatwindow.h
+++ b/src/gui/windows/chatwindow.h
@@ -330,8 +330,8 @@ class ChatWindow final : public Window,
std::string autoCompleteHistory(const std::string &partName) const;
- std::string autoComplete(const std::string &partName,
- const History *const words) const;
+ static std::string autoComplete(const std::string &partName,
+ const History *const words);
static std::string autoComplete(const StringVect &names,
std::string partName);