Commit e66851e0 authored by Laurent Montel's avatar Laurent Montel 😁

Const'ify pointer

parent 09aa49e3
Pipeline #36631 failed with stage
in 60 minutes and 15 seconds
......@@ -22,6 +22,7 @@ QStringList ViewerPluginExternalScriptParseArgument::parse(const QStringList &sc
}
QStringList newArguments;
newArguments.reserve(scriptArguments.count());
for (const QString &arg : scriptArguments) {
if (arg == QLatin1String("%s")) {
const KMime::Headers::Subject *const subject = mMessage ? mMessage->subject(false) : nullptr;
......
......@@ -22,19 +22,19 @@ K_PLUGIN_CLASS_WITH_JSON(EmailLineEdit, "emaillineedit.json")
EmailLineEdit::EmailLineEdit(QWidget *parent, const QList<QVariant> &)
: KSieveUi::AbstractSelectEmailLineEdit(parent)
, mLineEdit(new QLineEdit(this))
, mEmailButton(new QToolButton(this))
{
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mainLayout->setContentsMargins({});
mLineEdit = new QLineEdit(this);
mLineEdit->setObjectName(QStringLiteral("lineedit"));
mLineEdit->setClearButtonEnabled(true);
mLineEdit->setPlaceholderText(i18n("Click on button for selecting contacts..."));
connect(mLineEdit, &QLineEdit::textChanged, this, &EmailLineEdit::slotTextChanged);
mainLayout->addWidget(mLineEdit);
mEmailButton = new QToolButton(this);
mEmailButton->setText(i18n("..."));
mEmailButton->setObjectName(QStringLiteral("emailbutton"));
mEmailButton->setToolTip(i18n("Select Emails"));
......
......@@ -31,8 +31,8 @@ private:
void verifyAkonadiStatus();
void akonadiStateChanged(Akonadi::ServerManager::State state);
QString mNegativeBackground;
QLineEdit *mLineEdit = nullptr;
QToolButton *mEmailButton = nullptr;
QLineEdit *const mLineEdit;
QToolButton *const mEmailButton;
bool mEmailIsValid = false;
};
......
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