[Libreoffice-commits] core.git: vcl/qt5
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 9 11:53:25 UTC 2018
vcl/qt5/Qt5Font.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 3c3bc96aef41f27ad5fea318929134df036e494f
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Oct 9 13:52:55 2018 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Oct 9 13:52:55 2018 +0200
-Werror,-Wimplicit-fallthrough
("fallthrough annotation in unreachable code")
Change-Id: I858937b439333b851942de9ca8f50ec228e77a76
diff --git a/vcl/qt5/Qt5Font.cxx b/vcl/qt5/Qt5Font.cxx
index de4d10fdf13b..04516dffa367 100644
--- a/vcl/qt5/Qt5Font.cxx
+++ b/vcl/qt5/Qt5Font.cxx
@@ -33,9 +33,6 @@ static QFont::Weight GetQFontWeight(FontWeight eWeight)
return QFont::ExtraLight;
case WEIGHT_LIGHT:
return QFont::Light;
- case FontWeight_FORCE_EQUAL_SIZE:
- assert(false && "FontWeight_FORCE_EQUAL_SIZE not implementable for QFont");
- SAL_FALLTHROUGH;
case WEIGHT_SEMILIGHT:
SAL_FALLTHROUGH;
case WEIGHT_DONTKNOW:
@@ -52,6 +49,8 @@ static QFont::Weight GetQFontWeight(FontWeight eWeight)
return QFont::ExtraBold;
case WEIGHT_BLACK:
return QFont::Black;
+ case FontWeight_FORCE_EQUAL_SIZE:
+ assert(false && "FontWeight_FORCE_EQUAL_SIZE not implementable for QFont");
}
// so we would get enum not handled warning
More information about the Libreoffice-commits
mailing list