File 0008-Return-nullptr-instead-of-0.patch of Package libqt5-qtsvg.29651

From e75a0bd7f52544885c7271889be48e137427c17a Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@qt.io>
Date: Mon, 20 Jul 2020 19:06:51 +0200
Subject: [PATCH 08/21] Return nullptr instead of 0

Change-Id: I200214f90ce399034dabc61b00d20f7def8d923d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 0e1ea7b93388eca35814d3527584461074350f0f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 083d953e3c8db0bc4259236a9bd9a30562048926)
---
 src/svg/qsvgtinydocument.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/svg/qsvgtinydocument.cpp b/src/svg/qsvgtinydocument.cpp
index 695e7c6..b77695b 100644
--- a/src/svg/qsvgtinydocument.cpp
+++ b/src/svg/qsvgtinydocument.cpp
@@ -210,7 +210,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();
-- 
2.20.1

openSUSE Build Service is sponsored by