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

const'ify pointer

parent ff134466
Pipeline #203628 passed with stage
in 13 minutes and 58 seconds
......@@ -18,10 +18,10 @@ using namespace KPIMTextEdit;
TextToSpeechConfigDialog::TextToSpeechConfigDialog(QWidget *parent)
: QDialog(parent)
, mTextToSpeechConfigWidget(new TextToSpeechConfigWidget(parent))
{
setWindowTitle(i18nc("@title:window", "Configure Text-To-Speech"));
auto mainLayout = new QVBoxLayout(this);
mTextToSpeechConfigWidget = new TextToSpeechConfigWidget(parent);
mainLayout->addWidget(mTextToSpeechConfigWidget);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults, this);
......
......@@ -23,6 +23,6 @@ private:
void slotRestoreDefaults();
void readConfig();
void writeConfig();
KPIMTextEdit::TextToSpeechConfigWidget *mTextToSpeechConfigWidget = nullptr;
KPIMTextEdit::TextToSpeechConfigWidget *const mTextToSpeechConfigWidget;
};
}
Supports Markdown
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