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
SDK
Cervisia
Commits
c1100566
Commit
c1100566
authored
Jul 13, 2022
by
Laurent Montel
Browse files
Use more nullptr
parent
8d84bf0e
Changes
8
Hide whitespace changes
Inline
Side-by-side
addrepositorydialog.h
View file @
c1100566
...
...
@@ -33,7 +33,7 @@ class AddRepositoryDialog : public QDialog
Q_OBJECT
public:
AddRepositoryDialog
(
KConfig
&
cfg
,
const
QString
&
repo
,
QWidget
*
parent
=
0
);
AddRepositoryDialog
(
KConfig
&
cfg
,
const
QString
&
repo
,
QWidget
*
parent
=
nullptr
);
~
AddRepositoryDialog
()
override
;
void
setRepository
(
const
QString
&
repo
);
...
...
commitdialog.cpp
View file @
c1100566
...
...
@@ -46,7 +46,7 @@
class
CommitListItem
:
public
QListWidgetItem
{
public:
CommitListItem
(
const
QString
&
text
,
const
QString
&
fileName
,
QListWidget
*
parent
=
0
)
CommitListItem
(
const
QString
&
text
,
const
QString
&
fileName
,
QListWidget
*
parent
=
nullptr
)
:
QListWidgetItem
(
text
,
parent
)
,
m_fileName
(
fileName
)
{
...
...
cvsinitdialog.h
View file @
c1100566
...
...
@@ -34,7 +34,7 @@ class CvsInitDialog : public QDialog
Q_OBJECT
public:
explicit
CvsInitDialog
(
QWidget
*
parent
=
0
);
explicit
CvsInitDialog
(
QWidget
*
parent
=
nullptr
);
QString
directory
()
const
;
...
...
logplainview.h
View file @
c1100566
...
...
@@ -37,7 +37,7 @@ class LogPlainView : public QTextBrowser
Q_OBJECT
public:
explicit
LogPlainView
(
QWidget
*
parent
=
0
);
explicit
LogPlainView
(
QWidget
*
parent
=
nullptr
);
~
LogPlainView
()
override
;
void
addRevision
(
const
Cervisia
::
LogInfo
&
logInfo
);
...
...
patchoptiondialog.h
View file @
c1100566
...
...
@@ -33,7 +33,7 @@ class PatchOptionDialog : public QDialog
Q_OBJECT
public:
explicit
PatchOptionDialog
(
QWidget
*
parent
=
0
);
explicit
PatchOptionDialog
(
QWidget
*
parent
=
nullptr
);
~
PatchOptionDialog
()
override
;
QString
diffOptions
()
const
;
...
...
repositorydialog.h
View file @
c1100566
...
...
@@ -35,7 +35,7 @@ class RepositoryDialog : public QDialog
Q_OBJECT
public:
RepositoryDialog
(
KConfig
&
cfg
,
OrgKdeCervisia5CvsserviceCvsserviceInterface
*
cvsService
,
const
QString
&
cvsServiceInterfaceName
,
QWidget
*
parent
=
0
);
RepositoryDialog
(
KConfig
&
cfg
,
OrgKdeCervisia5CvsserviceCvsserviceInterface
*
cvsService
,
const
QString
&
cvsServiceInterfaceName
,
QWidget
*
parent
=
nullptr
);
~
RepositoryDialog
()
override
;
void
readConfigFile
();
...
...
watchersdialog.h
View file @
c1100566
...
...
@@ -28,7 +28,7 @@ class OrgKdeCervisia5CvsserviceCvsserviceInterface;
class
WatchersDialog
:
public
QDialog
{
public:
explicit
WatchersDialog
(
KConfig
&
cfg
,
QWidget
*
parent
=
0
);
explicit
WatchersDialog
(
KConfig
&
cfg
,
QWidget
*
parent
=
nullptr
);
~
WatchersDialog
()
override
;
bool
parseWatchers
(
OrgKdeCervisia5CvsserviceCvsserviceInterface
*
cvsService
,
const
QStringList
&
files
);
...
...
watchersmodel.h
View file @
c1100566
...
...
@@ -40,7 +40,7 @@ class WatchersModel : public QAbstractTableModel
enum
Columns
{
FileColumn
=
0
,
WatcherColumn
,
EditColumn
,
UneditColumn
,
CommitColumn
};
public:
explicit
WatchersModel
(
const
QStringList
&
data
,
QObject
*
parent
=
0
);
explicit
WatchersModel
(
const
QStringList
&
data
,
QObject
*
parent
=
nullptr
);
int
columnCount
(
const
QModelIndex
&
parent
=
QModelIndex
())
const
override
;
int
rowCount
(
const
QModelIndex
&
parent
=
QModelIndex
())
const
override
;
...
...
@@ -59,7 +59,7 @@ private:
class
WatchersSortModel
:
public
QSortFilterProxyModel
{
public:
explicit
WatchersSortModel
(
QObject
*
parent
=
0
);
explicit
WatchersSortModel
(
QObject
*
parent
=
nullptr
);
protected:
bool
lessThan
(
const
QModelIndex
&
left
,
const
QModelIndex
&
right
)
const
override
;
...
...
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