Kaydet (Commit) 3c3bc96a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wimplicit-fallthrough

("fallthrough annotation in unreachable code")

Change-Id: I858937b439333b851942de9ca8f50ec228e77a76
üst c9bfde9a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment