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

Constify pointer

parent 16907a8f
Pipeline #33082 passed with stage
in 9 minutes and 59 seconds
......@@ -29,7 +29,7 @@ public:
QVector<QAction *> richTextActionList;
KPIMTextEdit::RichTextComposerControler *composerControler = nullptr;
KPIMTextEdit::RichTextComposerControler *const composerControler;
KToggleAction *action_align_left = nullptr;
KToggleAction *action_align_right = nullptr;
KToggleAction *action_align_center = nullptr;
......
......@@ -16,7 +16,7 @@ public:
{
}
RichTextComposer *composerEditor = nullptr;
RichTextComposer *const composerEditor;
};
RichTextComposerEmailQuoteDecorator::RichTextComposerEmailQuoteDecorator(RichTextComposer *textEdit)
......
......@@ -34,7 +34,7 @@ public:
*/
QStringList mImageNames;
RichTextComposer *composer = nullptr;
RichTextComposer *const composer;
};
RichTextComposerImages::RichTextComposerImages(RichTextComposer *composer, QObject *parent)
......
......@@ -28,7 +28,7 @@ public:
QString extEditorPath;
KProcess *externalEditorProcess = nullptr;
QTemporaryFile *extEditorTempFile = nullptr;
RichTextComposer *const richTextComposer = nullptr;
RichTextComposer *const richTextComposer;
bool useExtEditor = false;
};
......
......@@ -18,7 +18,7 @@ public:
Q_REQUIRED_RESULT QString text() const;
private:
QString mText;
const QString mText;
};
class KPIMTEXTEDIT_TESTS_EXPORT EmoticonListWidgetSelector : public QListWidget
......
......@@ -279,7 +279,7 @@ protected:
The builder this MarkupDirector is operating on. This is available when
subclassing to customize behaviour.
*/
KPIMTextEdit::AbstractMarkupBuilder *m_builder;
KPIMTextEdit::AbstractMarkupBuilder *const m_builder;
#ifndef Q_QDOC
private:
......
......@@ -71,7 +71,7 @@ public:
QAction *actionRemoveCellContents = nullptr;
QTextEdit *textEdit = nullptr;
QTextEdit *const textEdit;
TableActionMenu *const q;
bool richTextMode = false;
};
......
......@@ -25,7 +25,7 @@ public:
{
}
QPlainTextEdit *mView = nullptr;
QPlainTextEdit *const mView;
};
PlainTextEditFindBar::PlainTextEditFindBar(QPlainTextEdit *view, QWidget *parent)
......
......@@ -62,9 +62,9 @@ public:
}
QStringList ignoreSpellCheckingWords;
PlainTextEditor *q;
KPIMTextEdit::TextMessageIndicator *mTextIndicator = nullptr;
KIO::KUriFilterSearchProviderActions *webshortcutMenuManager = nullptr;
PlainTextEditor *const q;
KPIMTextEdit::TextMessageIndicator *const mTextIndicator;
KIO::KUriFilterSearchProviderActions *const webshortcutMenuManager;
Sonnet::SpellCheckDecorator *richTextDecorator = nullptr;
Sonnet::Speller *speller = nullptr;
......
......@@ -24,7 +24,7 @@ public:
{
}
QTextEdit *mView = nullptr;
QTextEdit *const mView;
};
RichTextEditFindBar::RichTextEditFindBar(QTextEdit *view, QWidget *parent)
......
......@@ -91,13 +91,13 @@ public:
QStringList ignoreSpellCheckingWords;
RichTextEditor *const q;
KPIMTextEdit::TextMessageIndicator *textIndicator = nullptr;
KPIMTextEdit::TextMessageIndicator *const textIndicator;
QString spellCheckingConfigFileName;
QString spellCheckingLanguage;
QTextDocumentFragment originalDoc;
Sonnet::SpellCheckDecorator *richTextDecorator = nullptr;
Sonnet::Speller *speller = nullptr;
KIO::KUriFilterSearchProviderActions *webshortcutMenuManager = nullptr;
KIO::KUriFilterSearchProviderActions *const webshortcutMenuManager;
RichTextEditor::SupportFeatures supportFeatures;
int mInitialFontSize;
bool customPalette = false;
......
......@@ -32,7 +32,7 @@ public:
}
void setCompletion(const QString &completion);
QString wordUnderCursor() const;
Q_REQUIRED_RESULT QString wordUnderCursor() const;
void createCompleter();
void completeText();
QString excludeOfCharacters;
......
......@@ -17,7 +17,7 @@ public:
{
}
TextToSpeechWidget *mTextToSpeechWidget = nullptr;
TextToSpeechWidget *const mTextToSpeechWidget;
};
TextToSpeechInterface::TextToSpeechInterface(TextToSpeechWidget *textToSpeechWidget, QObject *parent)
......
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