Commit 37718593 authored by Laurent Montel's avatar Laurent Montel
Browse files

const'ify pointer/variable

parent d14f1b48
......@@ -12,7 +12,6 @@
AgentConfigModel::AgentConfigModel(QObject *parent)
: QAbstractTableModel(parent)
, m_interface(nullptr)
{
}
......
......@@ -41,9 +41,9 @@ class TextDialog : public QDialog
public:
explicit TextDialog(QWidget *parent = nullptr)
: QDialog(parent)
, mText(new QPlainTextEdit(this))
{
auto mainLayout = new QVBoxLayout(this);
mText = new QPlainTextEdit(this);
mText->setReadOnly(true);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok, this);
......@@ -64,7 +64,7 @@ public:
}
private:
QPlainTextEdit *mText = nullptr;
QPlainTextEdit *const mText;
};
using namespace Akonadi;
......
......@@ -58,6 +58,6 @@ protected:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
private:
AkonadiBrowserModel *mBrowserModel;
AkonadiBrowserModel *const mBrowserModel;
};
......@@ -28,7 +28,6 @@ Q_DECLARE_METATYPE(DebugModel::Message)
ConnectionPage::ConnectionPage(const QString &identifier, QWidget *parent)
: QWidget(parent)
, mIdentifier(identifier)
, mShowAllConnections(false)
{
auto layout = new QVBoxLayout(this);
auto h = new QHBoxLayout;
......
......@@ -47,7 +47,7 @@ private:
DebugFilterModel *mFilterModel = nullptr;
QTableView *mDataView = nullptr;
KPIM::KCheckComboBox *mSenderFilter = nullptr;
QString mIdentifier;
bool mShowAllConnections;
const QString mIdentifier;
bool mShowAllConnections = false;
};
......@@ -81,7 +81,6 @@ DbConsoleTab *DbConsole::addTab()
DbConsoleTab::DbConsoleTab(int index, QWidget *parent)
: QWidget(parent)
, mQueryModel(nullptr)
, mIndex(index)
{
ui.setupUi(this);
......
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