diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-01 21:51:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-01 21:54:54 +0300 |
commit | 7778c082e9b15774a1e79ab77cb60edb5c3a2949 (patch) | |
tree | 4eeeabda71cb5f2f330d52ee93c8922eef054d9e /src/gui | |
parent | f5e3f241af190e487c0499dae0efc12e9ae2d202 (diff) | |
download | manaplus-7778c082e9b15774a1e79ab77cb60edb5c3a2949.tar.gz manaplus-7778c082e9b15774a1e79ab77cb60edb5c3a2949.tar.bz2 manaplus-7778c082e9b15774a1e79ab77cb60edb5c3a2949.tar.xz manaplus-7778c082e9b15774a1e79ab77cb60edb5c3a2949.zip |
Add some checks after automatic check code by tools.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/mailwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/mailwindow.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp index 254aa2f73..9da69fb0a 100644 --- a/src/gui/windows/mailwindow.cpp +++ b/src/gui/windows/mailwindow.cpp @@ -189,7 +189,7 @@ void MailWindow::clear() mListBox->setSelected(-1); } -std::string MailWindow::getMailHeader(MailMessage *const message) const +std::string MailWindow::getMailHeader(const MailMessage *const message) const { if (mUseMail2) { diff --git a/src/gui/windows/mailwindow.h b/src/gui/windows/mailwindow.h index 6a310fb37..c99236499 100644 --- a/src/gui/windows/mailwindow.h +++ b/src/gui/windows/mailwindow.h @@ -85,7 +85,7 @@ class MailWindow final : public Window, private: void refreshMails(); - std::string getMailHeader(MailMessage *const message) const + std::string getMailHeader(const MailMessage *const message) const A_WARN_UNUSED A_NONNULL(2); STD_VECTOR<MailMessage*> mMessages; |