Commit 8d84bf0e authored by Laurent Montel's avatar Laurent Montel
Browse files

use nullptr

parent b0cc0ee0
Pipeline #204156 passed with stage
in 1 minute and 17 seconds
......@@ -31,7 +31,7 @@ class AddRemoveDialog : public QDialog
public:
enum ActionType { Add, AddBinary, Remove };
explicit AddRemoveDialog(ActionType action, QWidget* parent=0);
explicit AddRemoveDialog(ActionType action, QWidget* parent=nullptr);
void setFileList(const QStringList& files);
......
......@@ -38,7 +38,7 @@ class AnnotateDialog : public QDialog
public:
explicit AnnotateDialog( KConfig& cfg, QWidget *parent=0);
explicit AnnotateDialog( KConfig& cfg, QWidget *parent=nullptr);
~AnnotateDialog() override;
......
......@@ -30,7 +30,7 @@ class ChangeLogDialog : public QDialog
{
Q_OBJECT
public:
explicit ChangeLogDialog( KConfig& cfg, QWidget *parent=0 );
explicit ChangeLogDialog( KConfig& cfg, QWidget *parent=nullptr );
~ChangeLogDialog() override;
......
......@@ -37,7 +37,7 @@ public:
enum ActionType { Checkout, Import };
CheckoutDialog( KConfig& cfg, OrgKdeCervisia5CvsserviceCvsserviceInterface* service, ActionType action,
QWidget *parent=0);
QWidget *parent=nullptr);
QString workingDirectory() const;
QString repository() const;
......
......@@ -38,7 +38,7 @@ class CommitDialog : public QDialog
Q_OBJECT
public:
CommitDialog( KConfig& cfg, OrgKdeCervisia5CvsserviceCvsserviceInterface* service, QWidget *parent=0 );
CommitDialog( KConfig& cfg, OrgKdeCervisia5CvsserviceCvsserviceInterface* service, QWidget *parent=nullptr );
~CommitDialog() override;
void setFileList(const QStringList &list);
......
......@@ -39,7 +39,7 @@ class DiffDialog : public QDialog
Q_OBJECT
public:
explicit DiffDialog(KConfig& config, QWidget *parent=0, bool modal=false);
explicit DiffDialog(KConfig& config, QWidget *parent=nullptr, bool modal=false);
~DiffDialog() override;
bool parseCvsDiff(OrgKdeCervisia5CvsserviceCvsserviceInterface* service, const QString &fileName,
......
......@@ -38,7 +38,7 @@ public:
enum DiffType { Change, Insert, Delete, Neutral, Unchanged, Separator };
DiffView( KConfig& cfg, bool withlinenos, bool withmarker,
QWidget *parent=0, const char *name=0 );
QWidget *parent=nullptr, const char *name=0 );
~DiffView() override;
......@@ -102,7 +102,7 @@ class DiffZoomWidget : public QFrame
Q_OBJECT
public:
explicit DiffZoomWidget(QWidget *parent=0);
explicit DiffZoomWidget(QWidget *parent=nullptr);
~DiffZoomWidget() override;
void setDiffView(DiffView *view);
......
......@@ -33,7 +33,7 @@ class HistoryDialog : public QDialog
Q_OBJECT
public:
explicit HistoryDialog(KConfig& cfg, QWidget *parent=0);
explicit HistoryDialog(KConfig& cfg, QWidget *parent=nullptr);
~HistoryDialog() override;
bool parseHistory(OrgKdeCervisia5CvsserviceCvsserviceInterface* cvsService);
......
......@@ -54,7 +54,7 @@ class LogDialog : public QDialog
Q_OBJECT
public:
explicit LogDialog( KConfig& cfg, QWidget *parent=0);
explicit LogDialog( KConfig& cfg, QWidget *parent=nullptr);
~LogDialog() override;
......
......@@ -56,7 +56,7 @@ class LogTreeView : public QTableView
Q_OBJECT
public:
explicit LogTreeView( QWidget *parent=0, const char *name=0 );
explicit LogTreeView( QWidget *parent=nullptr, const char *name=0 );
~LogTreeView() override;
......
......@@ -33,7 +33,7 @@ class MergeDialog : public QDialog
public:
explicit MergeDialog( OrgKdeCervisia5CvsserviceCvsserviceInterface* service,
QWidget *parent=0 );
QWidget *parent=nullptr );
bool byBranch() const;
QString branch() const;
......
......@@ -49,7 +49,7 @@ QString UserName();
*/
QString NormalizeRepository(const QString& repository);
bool CheckOverwrite(const QString& fileName, QWidget* parent=0);
bool CheckOverwrite(const QString& fileName, QWidget* parent=nullptr);
}
......
......@@ -31,7 +31,7 @@ class ProtocolView : public QTextEdit
{
Q_OBJECT
public:
explicit ProtocolView(const QString& appId, QWidget *parent=0);
explicit ProtocolView(const QString& appId, QWidget *parent=nullptr);
~ProtocolView() override;
bool startJob(bool isUpdateJob = false);
......
......@@ -34,7 +34,7 @@ public:
void repaint( const QRect &, bool erase=true );
protected:
QtTableView(QWidget *parent=0, const char *name=0);
QtTableView(QWidget *parent=nullptr, const char *name=0);
~QtTableView() override;
int numRows() const;
......
......@@ -38,7 +38,7 @@ class ResolveDialog : public QDialog
public:
enum ChooseType { ChA, ChB, ChAB, ChBA, ChEdit };
explicit ResolveDialog(KConfig& cfg, QWidget *parent=0);
explicit ResolveDialog(KConfig& cfg, QWidget *parent=nullptr);
~ResolveDialog() override;
bool parseFile(const QString &name);
......
......@@ -30,7 +30,7 @@ namespace Cervisia
class ResolveEditorDialog : public QDialog
{
public:
explicit ResolveEditorDialog(KConfig& cfg, QWidget* parent=0);
explicit ResolveEditorDialog(KConfig& cfg, QWidget* parent=nullptr);
~ResolveEditorDialog() override;
void setContent(const QString& text);
......
......@@ -42,7 +42,7 @@ class FontButton : public QPushButton
Q_OBJECT
public:
explicit FontButton( const QString &text, QWidget *parent=0 );
explicit FontButton( const QString &text, QWidget *parent=nullptr );
private slots:
void chooseFont();
......@@ -54,7 +54,7 @@ class SettingsDialog : public KPageDialog
Q_OBJECT
public:
explicit SettingsDialog(KConfig *conf, QWidget *parent=0);
explicit SettingsDialog(KConfig *conf, QWidget *parent=nullptr);
~SettingsDialog() override;
protected slots:
......
......@@ -38,7 +38,7 @@ public:
enum ActionType { Create, Delete };
TagDialog( ActionType action, OrgKdeCervisia5CvsserviceCvsserviceInterface* service,
QWidget *parent=0 );
QWidget *parent=nullptr );
bool branchTag() const;
bool forceTag() const;
......
......@@ -34,7 +34,7 @@ class UpdateDialog : public QDialog
public:
explicit UpdateDialog( OrgKdeCervisia5CvsserviceCvsserviceInterface* service,
QWidget *parent=0 );
QWidget *parent=nullptr );
bool byTag() const;
QString tag() const;
......
......@@ -31,7 +31,7 @@ public:
enum ActionType { Add, Remove };
enum Events { None=0, All=1, Commits=2, Edits=4, Unedits=8 };
explicit WatchDialog(ActionType action, QWidget *parent=0);
explicit WatchDialog(ActionType action, QWidget *parent=nullptr);
Events events() const;
......
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