From 0f3ac23d732239b50207cfbb8cf810ef41fa9835 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 May 2016 14:49:37 +0200 Subject: Insert explicit "break" when falling through to empty next case ...which itself only contains a "break" (or nothing at all at the end of the "switch"), as otherwise Clang -Wimplicit-fallthrough would warn about these. Change-Id: I25c1cf2ca74dfeba7ca0385ca8f1c1bf30bbf91b --- reportdesign/source/filter/xml/xmlHelper.cxx | 3 ++- reportdesign/source/ui/inspection/GeometryHandler.cxx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'reportdesign') diff --git a/reportdesign/source/filter/xml/xmlHelper.cxx b/reportdesign/source/filter/xml/xmlHelper.cxx index 5d1410ce3e7f..f11c01e3a7b6 100644 --- a/reportdesign/source/filter/xml/xmlHelper.cxx +++ b/reportdesign/source/filter/xml/xmlHelper.cxx @@ -91,8 +91,9 @@ const XMLPropertyHandler* OPropertyHandlerFactory::GetPropertyHandler(sal_Int32 break; case (XML_SD_TYPES_START+34): pHandler = new xmloff::ImageScaleModeHandler(); + break; default: - ; + break; } if ( !pHandler ) diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx index 535fa5800dc4..2cad0b53a9d9 100644 --- a/reportdesign/source/ui/inspection/GeometryHandler.cxx +++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx @@ -663,6 +663,7 @@ void SAL_CALL GeometryHandler::setPropertyValue(const OUString & PropertyName, c Value >>= sValue; aNewValue <<= impl_ConvertUIToMimeType_nothrow(sValue); } + break; default: break; } -- cgit