Prospective fix for build with -Werror

home/qt/work/qt/qt5/qtbase/src/platformsupport/linuxaccessibility/constant_mappings_p.h:110:8:
error: ‘<anonymous>.TestNamespace::RoleNames::m_spiRole’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]

Change-Id: I514417b33c6142e4d87b97b24dec76d68ec92ab8
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
bb10
Simon Hausmann 2020-01-31 12:23:29 +01:00
parent 47189b3a67
commit f9802b2fb1
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ struct RoleNames {
QString localizedName() const {return m_localizedName;}
private:
AtspiRole m_spiRole;
AtspiRole m_spiRole = ATSPI_ROLE_INVALID;
QString m_name;
QString m_localizedName;
};