diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-06 17:19:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-06 17:20:00 +0300 |
commit | 88697bc3503090194877b241b987ddc751034166 (patch) | |
tree | 6e515b6ca60d7866d352baa670558786a505bcdd /src/gui | |
parent | 21e0c15d56438f2d7f3e15736c00dd8b8ac6bd1c (diff) | |
download | manaplus-88697bc3503090194877b241b987ddc751034166.tar.gz manaplus-88697bc3503090194877b241b987ddc751034166.tar.bz2 manaplus-88697bc3503090194877b241b987ddc751034166.tar.xz manaplus-88697bc3503090194877b241b987ddc751034166.zip |
Add strong typed bool type NpcNames.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/tabs/socialplayerstab.h | 4 | ||||
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/socialplayerstab.h b/src/gui/widgets/tabs/socialplayerstab.h index 324ede7c6..7fee69deb 100644 --- a/src/gui/widgets/tabs/socialplayerstab.h +++ b/src/gui/widgets/tabs/socialplayerstab.h @@ -28,6 +28,8 @@ #include "being/being.h" +#include "enums/simpletypes.h" + #include "gui/models/beingslistmodel.h" #include "utils/gettext.h" @@ -147,7 +149,7 @@ class SocialPlayersTab final : public SocialTab if (actorManager) { StringVect names; - actorManager->getPlayerNames(names, false); + actorManager->getPlayerNames(names, NpcNames_false); std::vector<Avatar*>::iterator ai = avatars->begin(); while (ai != avatars->end()) diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 4d822afc1..1a36f7a83 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1385,7 +1385,7 @@ void ChatWindow::autoComplete() if (newName.empty() && actorManager) { - actorManager->getPlayerNames(nameList, true); + actorManager->getPlayerNames(nameList, NpcNames_true); newName = autoComplete(nameList, name); if (!newName.empty() && !startName) secureChatCommand(newName); |