summaryrefslogtreecommitdiff
path: root/src/svg/qgraphicssvgitem.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-03-02 13:59:24 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-03-02 22:48:32 +0000
commita0363376cfbfd9359adbd2501dd087dfb0a4eb98 (patch)
tree180b75299eb15dabfd8650b95b12bb26bcb79f88 /src/svg/qgraphicssvgitem.h
parent36a22f2c48f7df34c71b2177ff9c8b65daef614c (diff)
downloadqtsvg-a0363376cfbfd9359adbd2501dd087dfb0a4eb98.tar.gz
Make public headers compile with -Wzero-as-null-pointer-constant
... or equivalent. QtBase 5.6 headers already compile that way, so let the other modules follow suit. Task-number: QTBUG-45291 Change-Id: I725682ffe00dab94f84b00eed3aa76377bb80519 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/svg/qgraphicssvgitem.h')
-rw-r--r--src/svg/qgraphicssvgitem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/svg/qgraphicssvgitem.h b/src/svg/qgraphicssvgitem.h
index 541ddec..f3410d7 100644
--- a/src/svg/qgraphicssvgitem.h
+++ b/src/svg/qgraphicssvgitem.h
@@ -55,8 +55,8 @@ class Q_SVG_EXPORT QGraphicsSvgItem : public QGraphicsObject
Q_PROPERTY(QSize maximumCacheSize READ maximumCacheSize WRITE setMaximumCacheSize)
public:
- QGraphicsSvgItem(QGraphicsItem *parentItem=0);
- QGraphicsSvgItem(const QString &fileName, QGraphicsItem *parentItem=0);
+ QGraphicsSvgItem(QGraphicsItem *parentItem = Q_NULLPTR);
+ QGraphicsSvgItem(const QString &fileName, QGraphicsItem *parentItem = Q_NULLPTR);
void setSharedRenderer(QSvgRenderer *renderer);
QSvgRenderer *renderer() const;
@@ -74,7 +74,7 @@ public:
virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
- QWidget *widget=0);
+ QWidget *widget = Q_NULLPTR);
enum { Type = 13 };
virtual int type() const;