Commit a1a3f9e8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify + add reserve

parent 8596aa59
Pipeline #23836 passed with stage
in 35 minutes and 48 seconds
......@@ -28,6 +28,8 @@
#include <KPIMTextEdit/MarkupDirector>
#include <KPIMTextEdit/PlainTextMarkupBuilder>
#define USE_TEXTHTML_BUILDER 1
using namespace MessageComposer;
class MessageComposer::RichTextComposerNgPrivate
......@@ -160,11 +162,9 @@ MessageComposer::PluginEditorConvertTextInterface::ConvertTextStatus RichTextCom
return MessageComposer::PluginEditorConvertTextInterface::ConvertTextStatus::NotConverted;
}
#define USE_TEXTHTML_BUILDER 1
void RichTextComposerNg::fillComposerTextPart(MessageComposer::TextPart *textPart)
{
bool wasConverted
const bool wasConverted
= convertPlainText(textPart) == MessageComposer::PluginEditorConvertTextInterface::ConvertTextStatus::Converted;
if (composerControler()->isFormattingUsed()) {
if (!wasConverted) {
......
......@@ -88,7 +88,7 @@ void DistributionListExpandJob::slotExpansionDone(KJob *job)
const Akonadi::ContactGroupExpandJob *expandJob = qobject_cast<Akonadi::ContactGroupExpandJob *>(job);
const KContacts::Addressee::List contacts = expandJob->contacts();
mEmailAddresses.reserve(contacts.count());
for (const KContacts::Addressee &contact : contacts) {
mEmailAddresses << contact.fullEmail();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment