summaryrefslogtreecommitdiff
path: root/src/libs/extensionsystem
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2018-05-07 17:38:04 +0200
committerTobias Hunger <tobias.hunger@qt.io>2018-05-08 07:43:52 +0000
commitd96d786c3411a6dc42e12e357a64464fb7a5939a (patch)
tree00153f6ffe0597d98cb3654ea2c0b8953d36c422 /src/libs/extensionsystem
parent053e4494cf74a08fbea3efe80a0c2eb28e1b9c59 (diff)
downloadqt-creator-d96d786c3411a6dc42e12e357a64464fb7a5939a.tar.gz
ExtensionSystem: Consistently use nullptr
Fixed by clang-tidy modernize-use-nullptr. Change-Id: Ibf3797854e8f15940d363695ce30cc4558ed1ab8 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/extensionsystem')
-rw-r--r--src/libs/extensionsystem/iplugin.h2
-rw-r--r--src/libs/extensionsystem/plugindetailsview.h2
-rw-r--r--src/libs/extensionsystem/pluginerroroverview.h2
-rw-r--r--src/libs/extensionsystem/pluginerrorview.h2
-rw-r--r--src/libs/extensionsystem/pluginmanager.h4
-rw-r--r--src/libs/extensionsystem/pluginview.h2
6 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/extensionsystem/iplugin.h b/src/libs/extensionsystem/iplugin.h
index f95d7a2b28..4b14ecd92b 100644
--- a/src/libs/extensionsystem/iplugin.h
+++ b/src/libs/extensionsystem/iplugin.h
@@ -59,7 +59,7 @@ public:
virtual ShutdownFlag aboutToShutdown() { return SynchronousShutdown; }
virtual QObject *remoteCommand(const QStringList & /* options */,
const QString & /* workingDirectory */,
- const QStringList & /* arguments */) { return 0; }
+ const QStringList & /* arguments */) { return nullptr; }
virtual QList<QObject *> createTestObjects() const;
PluginSpec *pluginSpec() const;
diff --git a/src/libs/extensionsystem/plugindetailsview.h b/src/libs/extensionsystem/plugindetailsview.h
index 3cbcc4660e..eff757a0ee 100644
--- a/src/libs/extensionsystem/plugindetailsview.h
+++ b/src/libs/extensionsystem/plugindetailsview.h
@@ -43,7 +43,7 @@ class EXTENSIONSYSTEM_EXPORT PluginDetailsView : public QWidget
Q_OBJECT
public:
- PluginDetailsView(QWidget *parent = 0);
+ PluginDetailsView(QWidget *parent = nullptr);
~PluginDetailsView() override;
void update(PluginSpec *spec);
diff --git a/src/libs/extensionsystem/pluginerroroverview.h b/src/libs/extensionsystem/pluginerroroverview.h
index 4f971c0a3d..58fbc27d02 100644
--- a/src/libs/extensionsystem/pluginerroroverview.h
+++ b/src/libs/extensionsystem/pluginerroroverview.h
@@ -44,7 +44,7 @@ class EXTENSIONSYSTEM_EXPORT PluginErrorOverview : public QDialog
Q_OBJECT
public:
- explicit PluginErrorOverview(QWidget *parent = 0);
+ explicit PluginErrorOverview(QWidget *parent = nullptr);
~PluginErrorOverview() override;
private:
diff --git a/src/libs/extensionsystem/pluginerrorview.h b/src/libs/extensionsystem/pluginerrorview.h
index cf8ba7de4a..7a920cae62 100644
--- a/src/libs/extensionsystem/pluginerrorview.h
+++ b/src/libs/extensionsystem/pluginerrorview.h
@@ -41,7 +41,7 @@ class EXTENSIONSYSTEM_EXPORT PluginErrorView : public QWidget
Q_OBJECT
public:
- PluginErrorView(QWidget *parent = 0);
+ PluginErrorView(QWidget *parent = nullptr);
~PluginErrorView() override;
void update(PluginSpec *spec);
diff --git a/src/libs/extensionsystem/pluginmanager.h b/src/libs/extensionsystem/pluginmanager.h
index 7f96e1f96f..411a5205b4 100644
--- a/src/libs/extensionsystem/pluginmanager.h
+++ b/src/libs/extensionsystem/pluginmanager.h
@@ -67,7 +67,7 @@ public:
if (T *result = qobject_cast<T *>(obj))
return result;
}
- return 0;
+ return nullptr;
}
template <typename T, typename Predicate> static T *getObject(Predicate predicate)
{
@@ -117,7 +117,7 @@ public:
static bool testRunRequested();
- static void profilingReport(const char *what, const PluginSpec *spec = 0);
+ static void profilingReport(const char *what, const PluginSpec *spec = nullptr);
static QString platformName();
diff --git a/src/libs/extensionsystem/pluginview.h b/src/libs/extensionsystem/pluginview.h
index f7e24efd6a..f0df3bb8b1 100644
--- a/src/libs/extensionsystem/pluginview.h
+++ b/src/libs/extensionsystem/pluginview.h
@@ -48,7 +48,7 @@ class EXTENSIONSYSTEM_EXPORT PluginView : public QWidget
Q_OBJECT
public:
- explicit PluginView(QWidget *parent = 0);
+ explicit PluginView(QWidget *parent = nullptr);
~PluginView() override;
PluginSpec *currentPlugin() const;