summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/chat
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-12 20:26:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-12 20:26:59 +0300
commitbebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 (patch)
tree4d631106f76ba8a052dc2ef8b23b8a968040db82 /src/gui/widgets/tabs/chat
parent67638eeec5267977940dce29c5a94ce4d093ed69 (diff)
downloadmanaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz
manaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2
manaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz
manaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip
Add noexcept in some files.
Diffstat (limited to 'src/gui/widgets/tabs/chat')
-rw-r--r--src/gui/widgets/tabs/chat/chattab.h14
-rw-r--r--src/gui/widgets/tabs/chat/whispertab.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.h b/src/gui/widgets/tabs/chat/chattab.h
index b1a988a8e..c14f5dafb 100644
--- a/src/gui/widgets/tabs/chat/chattab.h
+++ b/src/gui/widgets/tabs/chat/chattab.h
@@ -138,7 +138,7 @@ class ChatTab notfinal : public Tab
/**
* Returns type of the being.
*/
- ChatTabTypeT getType() const A_WARN_UNUSED
+ ChatTabTypeT getType() const noexcept2 A_WARN_UNUSED
{ return mType; }
void saveToLogFile(const std::string &msg) const;
@@ -151,22 +151,22 @@ class ChatTab notfinal : public Tab
void loadFromLogFile(const std::string &name);
- bool getAllowHighlight() const A_WARN_UNUSED
+ bool getAllowHighlight() const noexcept2 A_WARN_UNUSED
{ return mAllowHightlight; }
- void setAllowHighlight(const bool n)
+ void setAllowHighlight(const bool n) noexcept2
{ mAllowHightlight = n; }
- bool getRemoveNames() const A_WARN_UNUSED
+ bool getRemoveNames() const noexcept2 A_WARN_UNUSED
{ return mRemoveNames; }
- void setRemoveNames(const bool n)
+ void setRemoveNames(const bool n) noexcept2
{ mRemoveNames = n; }
- bool getNoAway() const A_WARN_UNUSED
+ bool getNoAway() const noexcept2 A_WARN_UNUSED
{ return mNoAway; }
- void setNoAway(const bool n)
+ void setNoAway(const bool n) noexcept2
{ mNoAway = n; }
void addNewRow(std::string &line);
diff --git a/src/gui/widgets/tabs/chat/whispertab.h b/src/gui/widgets/tabs/chat/whispertab.h
index f298bf164..58fc1515d 100644
--- a/src/gui/widgets/tabs/chat/whispertab.h
+++ b/src/gui/widgets/tabs/chat/whispertab.h
@@ -33,7 +33,7 @@ class WhisperTab final : public ChatTab
public:
A_DELETE_COPY(WhisperTab)
- const std::string &getNick() const A_WARN_UNUSED
+ const std::string &getNick() const noexcept2 A_WARN_UNUSED
{ return mNick; }
bool handleCommand(const std::string &restrict type,