summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/Qt5AccessibleWidget.cxx4
-rw-r--r--vcl/qt5/Qt5Font.cxx3
2 files changed, 5 insertions, 2 deletions
diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index be3480aa3f77..748dda66f625 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -116,8 +116,8 @@ void lcl_appendRelation(QVector<QPair<QAccessibleInterface*, QAccessible::Relati
for (sal_uInt32 i = 0; i < nTargetCount; i++)
{
Reference<XAccessible> xAccessible(aRelation.TargetSet[i], uno::UNO_QUERY);
- relations->append(QPair(
- QAccessible::queryAccessibleInterface(new Qt5XAccessible(xAccessible)), aQRelation));
+ relations->append(
+ { QAccessible::queryAccessibleInterface(new Qt5XAccessible(xAccessible)), aQRelation });
}
}
}
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: