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/qsvgstyle_p.h | |
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/qsvgstyle_p.h')
-rw-r--r-- | src/svg/qsvgstyle_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svg/qsvgstyle_p.h b/src/svg/qsvgstyle_p.h index 8664f7a..28cab14 100644 --- a/src/svg/qsvgstyle_p.h +++ b/src/svg/qsvgstyle_p.h @@ -70,7 +70,7 @@ class QSvgTinyDocument; template <class T> class QSvgRefCounter { public: - QSvgRefCounter() { t = 0; } + QSvgRefCounter() { t = nullptr; } QSvgRefCounter(T *_t) { t = _t; @@ -424,7 +424,7 @@ public: void setStroke(QBrush brush) { m_stroke.setBrush(brush); - m_style = 0; + m_style = nullptr; m_strokeSet = 1; } |