diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-10-08 18:03:47 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-10-09 07:32:46 +0200 |
commit | b8835ad978b1295a01105c587e601163cd9ff725 (patch) | |
tree | 4cef9b2330aa456fac9027394fb990ddacdf713b /vcl/qt5/Qt5Font.cxx | |
parent | d9ad59da50c1172fe98f94370221c9c1b688200a (diff) |
Qt5: fix build with Qt 5.11
And while at it annotate Qt5Font fall-throughs.
Change-Id: I31a73407f3228f303236983df17c66bc88eef6c5
Reviewed-on: https://gerrit.libreoffice.org/61557
Tested-by: Jenkins
Tested-by: Rene Engelhard <rene@debian.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/qt5/Qt5Font.cxx')
-rw-r--r-- | vcl/qt5/Qt5Font.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5Font.cxx b/vcl/qt5/Qt5Font.cxx index 60287d9a6093..de4d10fdf13b 100644 --- a/vcl/qt5/Qt5Font.cxx +++ b/vcl/qt5/Qt5Font.cxx @@ -35,8 +35,11 @@ static QFont::Weight GetQFontWeight(FontWeight eWeight) 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: + SAL_FALLTHROUGH; case WEIGHT_NORMAL: return QFont::Normal; case WEIGHT_MEDIUM: |