summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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);