diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-25 04:36:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-25 04:36:31 +0300 |
commit | 6adafcc07e2101ab085bd9f2182c965ef70d0519 (patch) | |
tree | b1c293ec19e5cd29ad5c05f8eddc017de33b3cb0 /src/gui/windows/mailwindow.cpp | |
parent | d11a1f693cd1c43c4d1977f65ef16eba11d872b1 (diff) | |
download | manaverse-6adafcc07e2101ab085bd9f2182c965ef70d0519.tar.gz manaverse-6adafcc07e2101ab085bd9f2182c965ef70d0519.tar.bz2 manaverse-6adafcc07e2101ab085bd9f2182c965ef70d0519.tar.xz manaverse-6adafcc07e2101ab085bd9f2182c965ef70d0519.zip |
Use int64 for mail messages ids.
Diffstat (limited to 'src/gui/windows/mailwindow.cpp')
-rw-r--r-- | src/gui/windows/mailwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp index 647eb17f5..c12b719fc 100644 --- a/src/gui/windows/mailwindow.cpp +++ b/src/gui/windows/mailwindow.cpp @@ -207,9 +207,9 @@ void MailWindow::addMail(MailMessage *const message) mMessagesMap[message->id] = message; } -void MailWindow::removeMail(const int id) +void MailWindow::removeMail(const int64_t id) { - std::map<int, MailMessage*>::iterator it1 = mMessagesMap.find(id); + std::map<int64_t, MailMessage*>::iterator it1 = mMessagesMap.find(id); if (it1 != mMessagesMap.end()) mMessagesMap.erase(it1); @@ -238,7 +238,7 @@ void MailWindow::showMessage(MailMessage *const mail) { if (mail == nullptr) return; - const std::map<int, MailMessage*>::const_iterator + const std::map<int64_t, MailMessage*>::const_iterator it = mMessagesMap.find(mail->id); if (it != mMessagesMap.end()) { @@ -250,7 +250,7 @@ void MailWindow::showMessage(MailMessage *const mail) CREATEWIDGETV(mailViewWindow, MailViewWindow, mail); } -void MailWindow::viewNext(const int id) +void MailWindow::viewNext(const int64_t id) { FOR_EACH (STD_VECTOR<MailMessage*>::iterator, it, mMessages) { @@ -274,7 +274,7 @@ void MailWindow::viewNext(const int id) } } -void MailWindow::viewPrev(const int id) +void MailWindow::viewPrev(const int64_t id) { FOR_EACH (STD_VECTOR<MailMessage*>::iterator, it, mMessages) { |