diff options
author | Kevin Funk <kfunk@kde.org> | 2017-09-24 23:55:03 +0200 |
---|---|---|
committer | Kevin Funk <kevin.funk@kdab.com> | 2017-09-27 08:38:45 +0000 |
commit | 4dd6b2bfebf02223ef498bf52ce354c628cc9607 (patch) | |
tree | 3113e61bf02f61a0534b4ca1cb030d9939554fd4 | |
parent | 25634633c956e9dce32239fb776346f93d1a9301 (diff) | |
download | qtsvg-4dd6b2bfebf02223ef498bf52ce354c628cc9607.tar.gz |
Replace Q_NULLPTR with nullptr
Change-Id: Ibaae1afa39414a951a57c36037fa3b951654329f
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rw-r--r-- | src/svg/qgraphicssvgitem.h | 6 | ||||
-rw-r--r-- | src/svg/qsvgrenderer.h | 8 | ||||
-rw-r--r-- | src/svg/qsvgwidget.h | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/svg/qgraphicssvgitem.h b/src/svg/qgraphicssvgitem.h index e849f7a..5102b91 100644 --- a/src/svg/qgraphicssvgitem.h +++ b/src/svg/qgraphicssvgitem.h @@ -61,8 +61,8 @@ class Q_SVG_EXPORT QGraphicsSvgItem : public QGraphicsObject Q_PROPERTY(QSize maximumCacheSize READ maximumCacheSize WRITE setMaximumCacheSize) public: - QGraphicsSvgItem(QGraphicsItem *parentItem = Q_NULLPTR); - QGraphicsSvgItem(const QString &fileName, QGraphicsItem *parentItem = Q_NULLPTR); + QGraphicsSvgItem(QGraphicsItem *parentItem = nullptr); + QGraphicsSvgItem(const QString &fileName, QGraphicsItem *parentItem = nullptr); void setSharedRenderer(QSvgRenderer *renderer); QSvgRenderer *renderer() const; @@ -80,7 +80,7 @@ public: void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, - QWidget *widget = Q_NULLPTR) override; + QWidget *widget = nullptr) override; enum { Type = 13 }; int type() const override; diff --git a/src/svg/qsvgrenderer.h b/src/svg/qsvgrenderer.h index 6538df0..4413509 100644 --- a/src/svg/qsvgrenderer.h +++ b/src/svg/qsvgrenderer.h @@ -65,10 +65,10 @@ class Q_SVG_EXPORT QSvgRenderer : public QObject Q_PROPERTY(int framesPerSecond READ framesPerSecond WRITE setFramesPerSecond) Q_PROPERTY(int currentFrame READ currentFrame WRITE setCurrentFrame) public: - QSvgRenderer(QObject *parent = Q_NULLPTR); - QSvgRenderer(const QString &filename, QObject *parent = Q_NULLPTR); - QSvgRenderer(const QByteArray &contents, QObject *parent = Q_NULLPTR); - QSvgRenderer(QXmlStreamReader *contents, QObject *parent = Q_NULLPTR); + QSvgRenderer(QObject *parent = nullptr); + QSvgRenderer(const QString &filename, QObject *parent = nullptr); + QSvgRenderer(const QByteArray &contents, QObject *parent = nullptr); + QSvgRenderer(QXmlStreamReader *contents, QObject *parent = nullptr); ~QSvgRenderer(); bool isValid() const; diff --git a/src/svg/qsvgwidget.h b/src/svg/qsvgwidget.h index 107c64d..8f6dd44 100644 --- a/src/svg/qsvgwidget.h +++ b/src/svg/qsvgwidget.h @@ -59,8 +59,8 @@ class Q_SVG_EXPORT QSvgWidget : public QWidget { Q_OBJECT public: - QSvgWidget(QWidget *parent = Q_NULLPTR); - QSvgWidget(const QString &file, QWidget *parent = Q_NULLPTR); + QSvgWidget(QWidget *parent = nullptr); + QSvgWidget(const QString &file, QWidget *parent = nullptr); ~QSvgWidget(); QSvgRenderer *renderer() const; |