Commit 94b198ef authored by Laurent Montel's avatar Laurent Montel
Browse files

const'ify pointer

parent ac5182ec
Pipeline #218583 passed with stage
in 18 minutes and 24 seconds
......@@ -37,10 +37,10 @@ static const char myMailSourceWebEngineViewerConfigGroupName[] = "MailSourceWebE
}
MailSourceWebEngineViewer::MailSourceWebEngineViewer(QWidget *parent)
: QDialog(parent)
, mRawBrowser(new MailSourceViewTextBrowserWidget(QStringLiteral("Email"), this))
{
setAttribute(Qt::WA_DeleteOnClose);
auto mainLayout = new QVBoxLayout(this);
mRawBrowser = new MailSourceViewTextBrowserWidget(QStringLiteral("Email"), this);
#ifndef NDEBUG
mShowHtmlSource = true;
#endif
......
......@@ -28,7 +28,7 @@ public:
private:
void readConfig();
void writeConfig();
MailSourceViewTextBrowserWidget *mRawBrowser = nullptr;
MailSourceViewTextBrowserWidget *const mRawBrowser;
FindBarSourceView *mFindBar = nullptr;
QTabWidget *mTabWidget = nullptr;
MailSourceViewTextBrowserWidget *mHtmlBrowser = nullptr;
......
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