Commit 5defb5eb authored by Laurent Montel's avatar Laurent Montel 😁

Const'ify method + fix compile warning

parent 9e48f38d
Pipeline #32417 passed with stage
in 45 minutes and 47 seconds
......@@ -2515,7 +2515,7 @@ void KMComposerWin::slotWordWrapToggled(bool on)
}
}
int KMComposerWin::validateLineWrapWidth()
int KMComposerWin::validateLineWrapWidth() const
{
int lineWrap = MessageComposer::MessageComposerSettings::self()->lineWrapWidth();
if ((lineWrap == 0) || (lineWrap > 78)) {
......
......@@ -534,8 +534,8 @@ private:
void insertUrls(const QMimeData *source, const QList<QUrl> &urlList);
void initializePluginActions();
Q_REQUIRED_RESULT bool showErrorMessage(KJob *job);
Q_REQUIRED_RESULT int validateLineWrapWidth();
bool showErrorMessage(KJob *job);
Q_REQUIRED_RESULT int validateLineWrapWidth() const;
void slotSelectionChanged();
void slotMessage(const QString &str);
void slotEditorPluginInsertText(const QString &str);
......
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