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

Use more nullptr

parent 8d84bf0e
......@@ -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);
......
......@@ -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)
{
......
......@@ -34,7 +34,7 @@ class CvsInitDialog : public QDialog
Q_OBJECT
public:
explicit CvsInitDialog(QWidget* parent = 0);
explicit CvsInitDialog(QWidget* parent = nullptr);
QString directory() const;
......
......@@ -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);
......
......@@ -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;
......
......@@ -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();
......
......@@ -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);
......
......@@ -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;
......
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