Commit 7aa676f9 authored by Laurent Montel's avatar Laurent Montel 😁

const'ify

parent 5ac4b9d3
......@@ -263,11 +263,11 @@ void MessageComposer::ComposerViewBase::send ( MessageComposer::MessageSender::S
}
if ( m_editor->isFormattingUsed() && inlineSigningEncryptionSelected() ) {
QString keepBtnText = m_encrypt ?
const QString keepBtnText = m_encrypt ?
m_sign ? i18n( "&Keep markup, do not sign/encrypt" )
: i18n( "&Keep markup, do not encrypt" )
: i18n( "&Keep markup, do not sign" );
QString yesBtnText = m_encrypt ?
const QString yesBtnText = m_encrypt ?
m_sign ? i18n("Sign/Encrypt (delete markup)")
: i18n( "Encrypt (delete markup)" )
: i18n( "Sign (delete markup)" );
......
......@@ -232,7 +232,7 @@ MessageFactory::MessageReply MessageFactory::createReply()
// in case of a reply to self, toList might be empty. if that's the case
// then propagate a cc recipient to To: (if there is any).
if ( toList.isEmpty() && !ccRecipients.isEmpty() ) {
toList << ccRecipients[ 0 ];
toList << ccRecipients.at( 0 );
ccRecipients.pop_front();
}
......@@ -242,7 +242,7 @@ MessageFactory::MessageReply MessageFactory::createReply()
if ( toList.isEmpty() && !recipients.isEmpty() ) {
// reply to self without other recipients
toList << recipients[ 0 ];
toList << recipients.at(0);
}
}
break;
......@@ -503,18 +503,18 @@ KMime::Message::Ptr MessageFactory::createRedirect( const QString &toStr, const
m_identityManager->identityForUoidOrDefault( id );
// X-KMail-Redirect-From: content
QString strByWayOf = QString::fromLocal8Bit("%1 (by way of %2 <%3>)")
const QString strByWayOf = QString::fromLocal8Bit("%1 (by way of %2 <%3>)")
.arg( m_origMsg->from()->asUnicodeString() )
.arg( ident.fullName() )
.arg( ident.primaryEmailAddress() );
// Resent-From: content
QString strFrom = QString::fromLocal8Bit("%1 <%2>")
const QString strFrom = QString::fromLocal8Bit("%1 <%2>")
.arg( ident.fullName() )
.arg( ident.primaryEmailAddress() );
// format the current date to be used in Resent-Date:
QString newDate = KDateTime::currentLocalDateTime().toString( KDateTime::RFCDateDay );
const QString newDate = KDateTime::currentLocalDateTime().toString( KDateTime::RFCDateDay );
// Clean up any resent headers
msg->removeHeader( "Resent-Cc" );
......
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