summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-07-20 19:06:51 +0200
committerRobert Loehning <robert.loehning@qt.io>2020-07-24 18:01:54 +0000
commit0e1ea7b93388eca35814d3527584461074350f0f (patch)
tree2e2dc7dc63163dab5e8311f97022c0b2d6b33b5b
parent625ca761c7c88f80ee8217c820f1e1f60ca7ef4f (diff)
downloadqtsvg-0e1ea7b93388eca35814d3527584461074350f0f.tar.gz
Return nullptr instead of 0
Pick-to: 5.12 5.15 Change-Id: I200214f90ce399034dabc61b00d20f7def8d923d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--src/svg/qsvgtinydocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvgtinydocument.cpp b/src/svg/qsvgtinydocument.cpp
index 295f535..0cbea1d 100644
--- a/src/svg/qsvgtinydocument.cpp
+++ b/src/svg/qsvgtinydocument.cpp
@@ -212,7 +212,7 @@ QSvgTinyDocument * QSvgTinyDocument::load(const QByteArray &contents)
QSvgHandler handler(contents);
- QSvgTinyDocument *doc = 0;
+ QSvgTinyDocument *doc = nullptr;
if (handler.ok()) {
doc = handler.document();
doc->m_animationDuration = handler.animationDuration();