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

const'ify pointer

parent 22b3cf33
Pipeline #26100 failed with stage
in 5 minutes and 48 seconds
......@@ -57,7 +57,7 @@ public:
RichTextComposerControler *composerControler = nullptr;
RichTextComposerActions *richTextComposerActions = nullptr;
KPIMTextEdit::RichTextExternalComposer *externalComposer = nullptr;
RichTextComposer *q = nullptr;
RichTextComposer *const q;
RichTextComposer::Mode mode = RichTextComposer::Plain;
bool forcePlainTextMarkup = false;
struct UndoHtmlVersion {
......
......@@ -78,7 +78,7 @@ public:
NestedListHelper *nestedListHelper = nullptr;
RichTextComposer *richtextComposer = nullptr;
RichTextComposerImages *richTextImages = nullptr;
RichTextComposerControler *q = nullptr;
RichTextComposerControler *const q;
bool painterActive = false;
};
......
......@@ -56,7 +56,7 @@ public:
QString m_quoteprefix;
PlainTextMarkupBuilder *q_ptr;
PlainTextMarkupBuilder * const q_ptr;
Q_DECLARE_PUBLIC(PlainTextMarkupBuilder)
};
......
......@@ -34,7 +34,7 @@ public:
QList<QTextListFormat::Style> currentListItemStyles;
QString m_text;
TextHTMLBuilder *q_ptr;
TextHTMLBuilder * const q_ptr;
Q_DECLARE_PUBLIC(TextHTMLBuilder)
};
......
......@@ -69,7 +69,7 @@ public:
void _k_slotTextChanged();
QPushButton *okButton = nullptr;
InsertHtmlEditor *editor = nullptr;
InsertHtmlDialog *q = nullptr;
InsertHtmlDialog *const q;
};
void InsertHtmlDialogPrivate::_k_slotTextChanged()
......
......@@ -61,7 +61,7 @@ public:
InsertImageWidget *imageWidget = nullptr;
QPushButton *okButton = nullptr;
InsertImageDialog *q = nullptr;
InsertImageDialog *const q;
};
InsertImageDialog::InsertImageDialog(QWidget *parent)
......
......@@ -144,7 +144,7 @@ public:
QSpinBox *height = nullptr;
KUrlRequester *imageUrlRequester = nullptr;
QLabel *preview = nullptr;
InsertImageWidget *q = nullptr;
InsertImageWidget *const q;
};
void InsertImageWidgetPrivate::_k_slotKeepOriginalSizeClicked(bool checked)
......
......@@ -56,7 +56,7 @@ public:
}
InsertTableWidget *insertTableWidget = nullptr;
InsertTableDialog *q = nullptr;
InsertTableDialog *const q;
};
InsertTableDialog::InsertTableDialog(QWidget *parent)
......
......@@ -81,7 +81,7 @@ public:
QSpinBox *mLength = nullptr;
QComboBox *mTypeOfLength = nullptr;
InsertTableWidget *q = nullptr;
InsertTableWidget *const q;
};
InsertTableWidget::InsertTableWidget(QWidget *parent)
......
......@@ -69,7 +69,7 @@ public:
KCharSelect *mCharSelect = nullptr;
QDialogButtonBox *mButtonBox = nullptr;
QPushButton *mSelectButton = nullptr;
SelectSpecialCharDialog *q = nullptr;
SelectSpecialCharDialog *const q;
};
void SelectSpecialCharDialogPrivate::_k_slotInsertChar()
......
......@@ -85,7 +85,7 @@ public:
QAction *actionRemoveCellContents = nullptr;
QTextEdit *textEdit = nullptr;
TableActionMenu *q = nullptr;
TableActionMenu *const q;
bool richTextMode = false;
};
......
......@@ -81,7 +81,7 @@ public:
KColorButton *backgroundColor = nullptr;
QComboBox *verticalAlignment = nullptr;
TableCellFormatDialog *q = nullptr;
TableCellFormatDialog *const q;
};
TableCellFormatDialog::TableCellFormatDialog(QWidget *parent)
......
......@@ -119,7 +119,7 @@ public:
QSpinBox *spacing = nullptr;
QSpinBox *padding = nullptr;
KPIMTextEdit::InsertTableWidget *tableWidget = nullptr;
TableFormatDialog *q = nullptr;
TableFormatDialog *const q;
};
TableFormatDialog::TableFormatDialog(QWidget *parent)
......
......@@ -78,7 +78,7 @@ public:
}
QStringList ignoreSpellCheckingWords;
RichTextEditor *q = nullptr;
RichTextEditor *const q;
KPIMTextEdit::TextMessageIndicator *textIndicator = nullptr;
QString spellCheckingConfigFileName;
QString spellCheckingLanguage;
......
......@@ -52,7 +52,7 @@ public:
QCompleter *completer = nullptr;
QPlainTextEdit *plainTextEdit = nullptr;
QTextEdit *textEdit = nullptr;
TextEditorCompleter *q = nullptr;
TextEditorCompleter *const q;
};
void TextEditorCompleter::TextEditorCompleterPrivate::createCompleter()
......
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