Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Console
Commits
37718593
Commit
37718593
authored
Sep 04, 2022
by
Laurent Montel
Browse files
const'ify pointer/variable
parent
d14f1b48
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/agentconfigmodel.cpp
View file @
37718593
...
...
@@ -12,7 +12,6 @@
AgentConfigModel
::
AgentConfigModel
(
QObject
*
parent
)
:
QAbstractTableModel
(
parent
)
,
m_interface
(
nullptr
)
{
}
...
...
src/agentwidget.cpp
View file @
37718593
...
...
@@ -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
;
...
...
src/akonadibrowsermodel.h
View file @
37718593
...
...
@@ -58,6 +58,6 @@ protected:
bool
lessThan
(
const
QModelIndex
&
left
,
const
QModelIndex
&
right
)
const
override
;
private:
AkonadiBrowserModel
*
mBrowserModel
;
AkonadiBrowserModel
*
const
mBrowserModel
;
};
src/connectionpage.cpp
View file @
37718593
...
...
@@ -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
;
...
...
src/connectionpage.h
View file @
37718593
...
...
@@ -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
;
};
src/dbconsole.cpp
View file @
37718593
...
...
@@ -81,7 +81,6 @@ DbConsoleTab *DbConsole::addTab()
DbConsoleTab
::
DbConsoleTab
(
int
index
,
QWidget
*
parent
)
:
QWidget
(
parent
)
,
mQueryModel
(
nullptr
)
,
mIndex
(
index
)
{
ui
.
setupUi
(
this
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment