summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorZhang Hao <zhanghao@uniontech.com>2021-10-14 20:51:22 +0800
committerZhang Hao <zhanghao@uniontech.com>2021-10-15 08:57:00 +0800
commit4527dc65e56b460bc2c640988cebaf8286582021 (patch)
treea370561e517dc9eae86ae77dcddd116ffa69c747 /examples
parentff38fa4b1e4e58996afea0851aa1ee17d30bd5e7 (diff)
downloadqtsvg-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 'examples')
-rw-r--r--examples/svg/embedded/weatherinfo/weatherinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/svg/embedded/weatherinfo/weatherinfo.cpp b/examples/svg/embedded/weatherinfo/weatherinfo.cpp
index 2da9b9f..864f0b8 100644
--- a/examples/svg/embedded/weatherinfo/weatherinfo.cpp
+++ b/examples/svg/embedded/weatherinfo/weatherinfo.cpp
@@ -332,7 +332,7 @@ private:
}
void createNewDay(QXmlStreamReader &xml) {
- QGraphicsTextItem *dayItem = 0;
+ QGraphicsTextItem *dayItem = nullptr;
QString lowT;
QString highT;
QString period = GET_DATA_ATTR("period");
@@ -384,7 +384,7 @@ private:
}
void saveDayItem(QGraphicsTextItem *dayItem, QString lowT, QString highT, QString symbolToShow) {
- QGraphicsSvgItem *statusItem = 0;
+ QGraphicsSvgItem *statusItem = nullptr;
if (!symbolToShow.isEmpty()) {
statusItem = new QGraphicsSvgItem(symbolToShow);
m_scene.addItem(statusItem);