[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim-addons/Applications/16.08] plugins/messageviewer/bodypartformatter/calendar: don't create a
From: Montel Laurent <montel () kde ! org>
Date: 2016-08-01 18:52:50
Message-ID: E1bUIKY-00089U-67 () code ! kde ! org
[Download RAW message or body]
Git commit 73d5dccae9cae8fd9d834510472499b6be32fdcf by Montel Laurent.
Committed on 01/08/2016 at 18:52.
Pushed by mlaurent into branch 'Applications/16.08'.
don't create a new kidentitymanager when not necessary
M +1 -2 plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp
http://commits.kde.org/kdepim-addons/73d5dccae9cae8fd9d834510472499b6be32fdcf
diff --git a/plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp \
b/plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp index \
30fd407..9e1e76e 100644
--- a/plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp
+++ b/plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp
@@ -404,7 +404,7 @@ public:
}
QString receiver;
- KIdentityManagement::IdentityManager *im = new \
KIdentityManagement::IdentityManager(true); + \
KIdentityManagement::IdentityManager *im = \
KIdentityManagement::IdentityManager::self();
KMime::Types::Mailbox::List addrs;
if (node->topLevel()->header<KMime::Headers::To>()) {
@@ -467,7 +467,6 @@ public:
receiver.clear();
}
}
- delete im;
return receiver;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic