[Libreoffice-commits] core.git: vcl/qt5

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Sat Sep 26 12:52:25 UTC 2020


 vcl/qt5/Qt5AccessibleWidget.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ed424cf629b2ab33089b1be0dccfce60be85d726
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sat Sep 26 11:51:56 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Sep 26 14:51:44 2020 +0200

    Avoid -Werror=deprecated-declarations
    
    ...with qt5-qtbase-devel-5.15.1-1.fc33.x86_64 on Fedora 33:
    
    > ~/lo/core/vcl/qt5/Qt5AccessibleWidget.cxx: In function ‘QAccessible::Relation {anonymous}::lcl_matchUnoRelation(short int)’:
    > ~/lo/core/vcl/qt5/Qt5AccessibleWidget.cxx:138:20: error: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = QAccessible::RelationFlag; QFlags<T>::Zero = int QFlags<QAccessible::RelationFlag>::Private::*]’ is deprecated: Use default constructor instead [-Werror=deprecated-declarations]
    >   138 |             return nullptr;
    >       |                    ^~~~~~~
    > In file included from /usr/include/qt5/QtCore/qglobal.h:1304,
    >                  from /usr/include/qt5/QtCore/qnamespace.h:43,
    >                  from /usr/include/qt5/QtCore/qobjectdefs.h:48,
    >                  from /usr/include/qt5/QtCore/qobject.h:46,
    >                  from /usr/include/qt5/QtCore/QObject:1,
    >                  from ~/lo/core/vcl/inc/qt5/Qt5AccessibleWidget.hxx:14,
    >                  from ~/lo/core/vcl/qt5/Qt5AccessibleWidget.cxx:20:
    > /usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
    >   123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
    >       |                                                                                ^~~~~~
    
    Change-Id: Ic0c113fe208764e8bc0b9c3fbf7358d6af4000ce
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103474
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index 9933444d9092..1f33cec86e3c 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -135,7 +135,7 @@ QAccessible::Relation lcl_matchUnoRelation(short relationType)
         case AccessibleRelationType::DESCRIBED_BY:
         default:
             SAL_WARN("vcl.qt5", "Unmatched relation: " << relationType);
-            return nullptr;
+            return {};
     }
 }
 


More information about the Libreoffice-commits mailing list