diff options
author | Zhang Hao <zhanghao@uniontech.com> | 2021-10-14 20:51:22 +0800 |
---|---|---|
committer | Zhang Hao <zhanghao@uniontech.com> | 2021-10-15 08:57:00 +0800 |
commit | 4527dc65e56b460bc2c640988cebaf8286582021 (patch) | |
tree | a370561e517dc9eae86ae77dcddd116ffa69c747 /src/svg/qsvghandler.cpp | |
parent | ff38fa4b1e4e58996afea0851aa1ee17d30bd5e7 (diff) | |
download | qtsvg-4527dc65e56b460bc2c640988cebaf8286582021.tar.gz |
Replace 0 with nullptr
We know that c++11 uses nullptr to replace 0,
so we replace 0 with nullptr in the project.
Change-Id: I81eb8c13339bf235ca5eab719526680e31fa26ed
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Diffstat (limited to 'src/svg/qsvghandler.cpp')
-rw-r--r-- | src/svg/qsvghandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp index fc8a71d..db29211 100644 --- a/src/svg/qsvghandler.cpp +++ b/src/svg/qsvghandler.cpp @@ -1339,7 +1339,7 @@ static void parseFont(QSvgNode *node, return; QSvgTinyDocument *doc = node->document(); - QSvgFontStyle *fontStyle = 0; + QSvgFontStyle *fontStyle = nullptr; if (!attributes.fontFamily.isEmpty()) { QSvgFont *svgFont = doc->svgFont(attributes.fontFamily.toString()); if (svgFont) @@ -3394,7 +3394,7 @@ static QSvgNode *createUseNode(QSvgNode *parent, QString linkId = attributes.value(QLatin1String("xlink:href")).toString().remove(0, 1); const QStringView xStr = attributes.value(QLatin1String("x")); const QStringView yStr = attributes.value(QLatin1String("y")); - QSvgStructureNode *group = 0; + QSvgStructureNode *group = nullptr; if (linkId.isEmpty()) linkId = attributes.value(QLatin1String("href")).toString().remove(0, 1); @@ -3714,7 +3714,7 @@ void QSvgHandler::parse() bool QSvgHandler::startElement(const QString &localName, const QXmlStreamAttributes &attributes) { - QSvgNode *node = 0; + QSvgNode *node = nullptr; pushColorCopy(); |