summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avmedia/source/gstreamer/gstplayer.cxx1
-rw-r--r--chart2/source/tools/ObjectIdentifier.cxx3
-rw-r--r--chart2/source/tools/RelativePositionHelper.cxx1
-rw-r--r--connectivity/source/drivers/jdbc/ResultSet.cxx3
-rw-r--r--connectivity/source/drivers/odbc/OTools.cxx1
-rw-r--r--connectivity/source/parse/sqlnode.cxx1
-rw-r--r--cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx3
-rw-r--r--cui/source/tabpages/tabline.cxx1
-rw-r--r--dbaccess/source/ui/app/AppController.cxx1
-rw-r--r--dbaccess/source/ui/dlg/ConnectionHelper.cxx2
-rw-r--r--dbaccess/source/ui/tabledesign/TableController.cxx2
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx1
-rw-r--r--filter/source/graphicfilter/icgm/actimpr.cxx1
-rw-r--r--filter/source/graphicfilter/ieps/ieps.cxx1
-rw-r--r--filter/source/graphicfilter/ipsd/ipsd.cxx1
-rw-r--r--filter/source/msfilter/msdffimp.cxx2
-rw-r--r--filter/source/msfilter/svdfppt.cxx3
-rw-r--r--filter/source/msfilter/util.cxx1
-rw-r--r--filter/source/svg/svgreader.cxx2
-rw-r--r--forms/source/component/ListBox.cxx1
-rw-r--r--hwpfilter/source/formula.cxx3
-rw-r--r--i18nlangtag/source/isolang/mslangid.cxx1
-rw-r--r--oox/source/drawingml/diagram/diagramlayoutatoms.cxx1
-rw-r--r--oox/source/ole/axcontrol.cxx1
-rw-r--r--oox/source/ppt/pptgraphicshapecontext.cxx1
-rw-r--r--oox/source/ppt/pptshapecontext.cxx1
-rw-r--r--reportdesign/source/filter/xml/xmlHelper.cxx3
-rw-r--r--reportdesign/source/ui/inspection/GeometryHandler.cxx1
-rw-r--r--sc/source/core/data/column3.cxx1
-rw-r--r--sc/source/core/data/documen4.cxx3
-rw-r--r--sc/source/core/data/dpoutputgeometry.cxx1
-rw-r--r--sc/source/core/tool/scmatrix.cxx3
-rw-r--r--sc/source/core/tool/token.cxx1
-rw-r--r--sc/source/filter/excel/xeextlst.cxx1
-rw-r--r--sc/source/filter/excel/xeformula.cxx1
-rw-r--r--sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx3
-rw-r--r--sc/source/ui/view/output2.cxx1
-rw-r--r--sd/source/filter/eppt/eppt.cxx1
-rw-r--r--sd/source/ui/sidebar/LayoutMenu.cxx1
-rw-r--r--sd/source/ui/sidebar/MasterPageContainerFiller.cxx1
-rw-r--r--sd/source/ui/sidebar/MasterPagesSelector.cxx1
-rw-r--r--sd/source/ui/table/tablefunction.cxx1
-rw-r--r--sd/source/ui/view/drviews2.cxx3
-rw-r--r--sd/source/ui/view/drviews3.cxx1
-rw-r--r--sd/source/ui/view/sdview3.cxx1
-rw-r--r--sdext/source/presenter/PresenterController.cxx1
-rw-r--r--sfx2/source/doc/iframe.cxx1
-rw-r--r--stoc/source/typeconv/convert.cxx5
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeGeometry.cxx1
-rw-r--r--svx/source/dialog/imapwnd.cxx1
-rw-r--r--sw/source/core/layout/flowfrm.cxx2
-rw-r--r--sw/source/core/tox/tox.cxx1
-rw-r--r--sw/source/filter/html/htmlsect.cxx3
-rw-r--r--sw/source/filter/html/htmltab.cxx3
-rw-r--r--sw/source/filter/html/svxcss1.cxx6
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx1
-rw-r--r--sw/source/filter/ww8/ww8par.cxx1
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx1
-rw-r--r--sw/source/ui/config/optload.cxx1
-rw-r--r--sw/source/ui/config/optpage.cxx1
-rw-r--r--sw/source/uibase/app/docstyle.cxx11
-rw-r--r--sw/source/uibase/shells/tabsh.cxx1
-rw-r--r--sw/source/uibase/uno/unotxvw.cxx2
-rw-r--r--toolkit/source/awt/vclxwindow.cxx4
-rw-r--r--vcl/source/filter/wmf/winmtf.cxx2
-rw-r--r--vcl/source/window/window.cxx1
-rw-r--r--vcl/unx/kde4/KDESalGraphics.cxx1
67 files changed, 102 insertions, 18 deletions
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx
index 620f5e03ec33..24722f03dfe2 100644
--- a/avmedia/source/gstreamer/gstplayer.cxx
+++ b/avmedia/source/gstreamer/gstplayer.cxx
@@ -422,6 +422,7 @@ void Player::processMessage( GstMessage *message )
if (mbPlayPending)
mbPlayPending = ((newstate == GST_STATE_READY) || (newstate == GST_STATE_PAUSED));
}
+ break;
default:
break;
}
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index 7ef0a95891e4..23db4eadd16d 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -73,8 +73,9 @@ OUString lcl_createClassificationStringForType( ObjectType eObjectType
case OBJECTTYPE_DATA_ERRORS_Y: //parent is intended to be OBJECTTYPE_DATA_ERRORS
case OBJECTTYPE_DATA_ERRORS_Z: //parent is intended to be OBJECTTYPE_DATA_ERRORS
aRet=m_aMultiClick;
+ break;
default:
- ;//empty string
+ break;//empty string
}
if( !rDragMethodServiceName.isEmpty() )
{
diff --git a/chart2/source/tools/RelativePositionHelper.cxx b/chart2/source/tools/RelativePositionHelper.cxx
index 0d4edec1ab14..185dc2400097 100644
--- a/chart2/source/tools/RelativePositionHelper.cxx
+++ b/chart2/source/tools/RelativePositionHelper.cxx
@@ -227,6 +227,7 @@ awt::Point RelativePositionHelper::getCenterOfAnchoredObject(
case drawing::Alignment_TOP:
case drawing::Alignment_TOP_RIGHT:
fYDelta += aUnrotatedObjectSize.Height/2;
+ break;
default:
// nothing to do
break;
diff --git a/connectivity/source/drivers/jdbc/ResultSet.cxx b/connectivity/source/drivers/jdbc/ResultSet.cxx
index d872258c82b2..3cef4b7b270e 100644
--- a/connectivity/source/drivers/jdbc/ResultSet.cxx
+++ b/connectivity/source/drivers/jdbc/ResultSet.cxx
@@ -917,8 +917,9 @@ sal_Bool java_sql_ResultSet::convertFastPropertyValue(
break;
case PROPERTY_ID_FETCHSIZE:
bRet = ::comphelper::tryPropertyValue(rConvertedValue, rOldValue, rValue, getFetchSize());
+ break;
default:
- ;
+ break;
}
return bRet;
}
diff --git a/connectivity/source/drivers/odbc/OTools.cxx b/connectivity/source/drivers/odbc/OTools.cxx
index 4b937859e2fb..71109fb06884 100644
--- a/connectivity/source/drivers/odbc/OTools.cxx
+++ b/connectivity/source/drivers/odbc/OTools.cxx
@@ -319,6 +319,7 @@ void OTools::ThrowException(const OConnection* _pConnection,
case SQL_NO_DATA_FOUND:
if(_bNoFound)
return; // no need to throw a exception
+ break;
case SQL_ERROR: break;
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 61d4b5fa5ef0..bc20db4d1c8d 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -826,6 +826,7 @@ OSQLParseNode* OSQLParser::convertNode(sal_Int32 nType, OSQLParseNode* pLiteral)
case DataType::CLOB:
if ( !SQL_ISRULE(pReturn,char_value_exp) && !buildStringNodes(pReturn) )
pReturn = nullptr;
+ break;
default:
break;
}
diff --git a/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx b/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
index 5067a2f3be4c..0b81cea8130d 100644
--- a/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
+++ b/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
@@ -91,9 +91,10 @@ static bool relatesToInterface(typelib_TypeDescription * pTypeDescr)
TYPELIB_DANGER_RELEASE( pTD );
if (bRel)
return true;
+ break;
}
default:
- ;
+ break;
}
}
if (pComp->pBaseTypeDescription)
diff --git a/cui/source/tabpages/tabline.cxx b/cui/source/tabpages/tabline.cxx
index 4db2bbc5d979..65a2e5268074 100644
--- a/cui/source/tabpages/tabline.cxx
+++ b/cui/source/tabpages/tabline.cxx
@@ -80,6 +80,7 @@ SvxLineTabDialog::SvxLineTabDialog
case OBJ_MEASURE:
case OBJ_EDGE:
bLineOnly = true;
+ break;
default:
break;
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx
index d6b962767077..db224ff63772 100644
--- a/dbaccess/source/ui/app/AppController.cxx
+++ b/dbaccess/source/ui/app/AppController.cxx
@@ -541,6 +541,7 @@ sal_Bool SAL_CALL OApplicationController::suspend(sal_Bool bSuspend) throw( Runt
break;
case RET_CANCEL:
bCanSuspend = false;
+ break;
default:
break;
}
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
index fa86cea1b2b3..e237f4a101ab 100644
--- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
@@ -331,6 +331,7 @@ namespace dbaui
aFileDlg.AddFilter(sFilterName,sExt);
aFileDlg.SetCurrentFilter(sFilterName);
askForFileName(aFileDlg);
+ break;
}
default:
break;
@@ -355,6 +356,7 @@ namespace dbaui
aFileDlg.AddFilter(sFilterName,sExt);
aFileDlg.SetCurrentFilter(sFilterName);
askForFileName(aFileDlg);
+ break;
}
default:
break;
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index a56e787f6ce6..16b94c9b2d45 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -562,6 +562,7 @@ sal_Bool SAL_CALL OTableController::suspend(sal_Bool /*_bSuspend*/) throw( Runti
break;
case RET_CANCEL:
bCheck = false;
+ break;
default:
break;
}
@@ -589,6 +590,7 @@ sal_Bool SAL_CALL OTableController::suspend(sal_Bool /*_bSuspend*/) throw( Runti
break;
case RET_CANCEL:
bCheck = false;
+ break;
default:
break;
}
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index 0e7c1a6c9c8e..b036de066c49 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -964,6 +964,7 @@ namespace accessibility
case text::textfield::Type::EXTENDED_FILE:
case text::textfield::Type::DOCINFO_TITLE:
strFldType = "file name";
+ break;
default:
break;
}
diff --git a/filter/source/graphicfilter/icgm/actimpr.cxx b/filter/source/graphicfilter/icgm/actimpr.cxx
index 124bba8883ee..de256bad966a 100644
--- a/filter/source/graphicfilter/icgm/actimpr.cxx
+++ b/filter/source/graphicfilter/icgm/actimpr.cxx
@@ -718,6 +718,7 @@ void CGMImpressOutAct::DrawText( awt::Point& rTextPos, awt::Size& rTextSize, cha
case TAV_BOTTOM :
case TAV_NORMAL :
aTextPos.Y -= static_cast<sal_Int32>( mpCGM->pElement->nCharacterHeight * 1.5 );
+ break;
case TAV_TOP :
break;
case TAV_CAP:
diff --git a/filter/source/graphicfilter/ieps/ieps.cxx b/filter/source/graphicfilter/ieps/ieps.cxx
index 08b6795c2b2e..ef132bbbb725 100644
--- a/filter/source/graphicfilter/ieps/ieps.cxx
+++ b/filter/source/graphicfilter/ieps/ieps.cxx
@@ -632,6 +632,7 @@ ipsGraphicImport( SvStream & rStream, Graphic & rGraphic, FilterConfigItem* )
case 0x0a :
if ( --nScanLines < 0 )
bIsValid = false;
+ break;
case 0x09 :
case 0x0d :
case 0x20 :
diff --git a/filter/source/graphicfilter/ipsd/ipsd.cxx b/filter/source/graphicfilter/ipsd/ipsd.cxx
index 3a89900176b4..249ecfbd1557 100644
--- a/filter/source/graphicfilter/ipsd/ipsd.cxx
+++ b/filter/source/graphicfilter/ipsd/ipsd.cxx
@@ -209,6 +209,7 @@ bool PSDReader::ImplReadHeader()
{
case 2 :
mbTransparent = true;
+ break;
case 1 :
break;
case 4 :
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 56a25dd52c1f..af1a021656ea 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -2486,6 +2486,7 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt
case mso_sptTextCircleCurve :
case mso_sptTextButtonCurve :
bTextPathFitShape = false;
+ break;
default : break;
}
}
@@ -5133,6 +5134,7 @@ SdrObject* SvxMSDffManager::ProcessObj(SvStream& rSt,
case mso_txflHorzA:
bVerticalText = true;
nTextRotationAngle = 9000;
+ break;
case mso_txflHorzN:
default :
break;
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 5320b57969ac..b72a6592eec1 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -3258,6 +3258,7 @@ PPTExtParaProv::PPTExtParaProv( SdrPowerPointImport& rMan, SvStream& rSt, const
#ifdef DBG_UTIL
default :
OSL_FAIL( "PPTExParaProv::PPTExParaProv - unknown atom reading ppt2000 num rules (SJ)" );
+ break;
case PPT_PST_MasterText : // first seen in: ms-tt02.ppt
case PPT_PST_SrKinsoku :
case PPT_PST_TextDefaults9Atom :
@@ -3312,6 +3313,7 @@ PPTExtParaProv::PPTExtParaProv( SdrPowerPointImport& rMan, SvStream& rSt, const
break;
default :
OSL_FAIL( "PPTExParaProv::PPTExParaProv - unknown atom, assuming PPT_PST_ExtendedParagraphMasterAtom (SJ)" );
+ break;
case PPT_PST_HashCodeAtom :
case PPT_PST_BuildList :
case PPT_PST_SlideFlags10Atom :
@@ -6555,6 +6557,7 @@ PPTTextObj::PPTTextObj( SvStream& rIn, SdrPowerPointImport& rSdrPowerPointImport
// fall-through
case PPT_MASTERPAGE :
nInstance++;
+ break;
case PPT_SLIDEPAGE :
break;
default :
diff --git a/filter/source/msfilter/util.cxx b/filter/source/msfilter/util.cxx
index 36046fbc06db..1b7bac492fff 100644
--- a/filter/source/msfilter/util.cxx
+++ b/filter/source/msfilter/util.cxx
@@ -549,6 +549,7 @@ EquationResult Read_SubF_Combined(WW8ReadFieldParams& rReadParam)
}
}
}
+ break;
}
default:
break;
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx
index 48ebaeb21f34..8b09bad26bd7 100644
--- a/filter/source/svg/svgreader.cxx
+++ b/filter/source/svg/svgreader.cxx
@@ -1605,6 +1605,7 @@ struct ShapeWritingVisitor
break;
case XML_R:
r = convLength(sAttributeValue,maCurrState,'r');
+ break;
default:
// skip
break;
@@ -1643,6 +1644,7 @@ struct ShapeWritingVisitor
break;
case XML_RY:
ry = convLength(sAttributeValue,maCurrState,'v');
+ break;
default:
// skip
break;
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 3275718d48b2..6b3f1b4c4635 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1316,6 +1316,7 @@ namespace frm
default:
break;
}
+ break;
}
default:
break;
diff --git a/hwpfilter/source/formula.cxx b/hwpfilter/source/formula.cxx
index 0022efe1f8ca..3b114f783f72 100644
--- a/hwpfilter/source/formula.cxx
+++ b/hwpfilter/source/formula.cxx
@@ -178,9 +178,8 @@ void Formula::makeExpr(Node *res)
break;
case ID_BLOCK:
makeBlock(tmp);
- //fall-through
+ break;
case ID_BEGIN:
- //fall-through
case ID_END:
break;
}
diff --git a/i18nlangtag/source/isolang/mslangid.cxx b/i18nlangtag/source/isolang/mslangid.cxx
index cec8d9fc45c5..ef5dc274acc2 100644
--- a/i18nlangtag/source/isolang/mslangid.cxx
+++ b/i18nlangtag/source/isolang/mslangid.cxx
@@ -263,6 +263,7 @@ bool MsLangId::isTraditionalChinese( LanguageType nLang )
case LANGUAGE_CHINESE_HONGKONG:
case LANGUAGE_CHINESE_MACAU:
bRet = true;
+ break;
default:
break;
}
diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
index 51b58da1a6aa..2df07c20d86d 100644
--- a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
+++ b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
@@ -354,6 +354,7 @@ void AlgAtom::layoutShape( const ShapePtr& rShape,
}
rShape->setSize(aTotalSize);
+ break;
}
default:
diff --git a/oox/source/ole/axcontrol.cxx b/oox/source/ole/axcontrol.cxx
index 64993a28bb1b..fe2c9df92611 100644
--- a/oox/source/ole/axcontrol.cxx
+++ b/oox/source/ole/axcontrol.cxx
@@ -430,6 +430,7 @@ void ControlConverter::convertToAxBorder( PropertySet& rPropSet,
break;
case API_BORDER_SUNKEN:
nSpecialEffect = AX_SPECIALEFFECT_SUNKEN;
+ break;
case API_BORDER_NONE:
default:
break;
diff --git a/oox/source/ppt/pptgraphicshapecontext.cxx b/oox/source/ppt/pptgraphicshapecontext.cxx
index 8fca4056eb64..bfe2a6cfdf31 100644
--- a/oox/source/ppt/pptgraphicshapecontext.cxx
+++ b/oox/source/ppt/pptgraphicshapecontext.cxx
@@ -123,6 +123,7 @@ ContextHandlerRef PPTGraphicShapeContext::onCreateContext( sal_Int32 aElementTok
case XML_sldImg : // notes/notesmaster
case XML_pic : // slide/layout
nFirstPlaceholder = nSubType;
+ break;
default:
break;
}
diff --git a/oox/source/ppt/pptshapecontext.cxx b/oox/source/ppt/pptshapecontext.cxx
index 935fdec3be60..c85083836904 100644
--- a/oox/source/ppt/pptshapecontext.cxx
+++ b/oox/source/ppt/pptshapecontext.cxx
@@ -118,6 +118,7 @@ ContextHandlerRef PPTShapeContext::onCreateContext( sal_Int32 aElementToken, con
case XML_sldImg : // notes/notesmaster
case XML_pic : // slide/layout
nFirstPlaceholder = nSubType;
+ break;
default:
break;
}
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;
}
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index a86cffe82322..27abbbf249fe 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -2329,6 +2329,7 @@ public:
break;
case CELLTYPE_STRING:
rColumn.SetRawString(aBlockPos, r.mnRow, *r.maValue.mpString, false);
+ break;
default:
;
}
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx
index 11fba58d7d81..3f91377c7d02 100644
--- a/sc/source/core/data/documen4.cxx
+++ b/sc/source/core/data/documen4.cxx
@@ -461,8 +461,9 @@ bool setCacheTableReferenced(formula::FormulaToken& rToken, ScExternalRefManager
* have to be marked as well, if so. Mechanism would be
* different. */
OSL_FAIL("ScDocument::MarkUsedExternalReferences: implement the svExternalName case!");
+ break;
default:
- ;
+ break;
}
return false;
}
diff --git a/sc/source/core/data/dpoutputgeometry.cxx b/sc/source/core/data/dpoutputgeometry.cxx
index f0ec629fe21c..53a600070470 100644
--- a/sc/source/core/data/dpoutputgeometry.cxx
+++ b/sc/source/core/data/dpoutputgeometry.cxx
@@ -179,6 +179,7 @@ void ScDPOutputGeometry::adjustFieldsForDataLayout(sal_uInt32& rColumnFields, sa
case Row:
if (rRowFields > 0)
rRowFields -= 1;
+ break;
default:
;
}
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index 9ed144514d34..1f5ace83c1ce 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -684,6 +684,7 @@ ScMatrixValue ScMatrixImpl::Get(SCSIZE nC, SCSIZE nR) const
assert(false);
}
aVal.fVal = 0.0;
+ break;
default:
;
}
@@ -1554,6 +1555,7 @@ public:
for (size_t i = 0; i < node.size; ++i)
compare();
}
+ break;
default:
;
}
@@ -1792,6 +1794,7 @@ public:
*miPos = op(*miPos, 0.0);
}
}
+ break;
default:
;
}
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index 11005eabe596..ebd17a0512b5 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -1564,6 +1564,7 @@ void ScTokenArray::CheckToken( const FormulaToken& r )
case svUnknown:
// We don't support vectorization on these.
meVectorState = FormulaVectorDisabled;
+ break;
default:
;
}
diff --git a/sc/source/filter/excel/xeextlst.cxx b/sc/source/filter/excel/xeextlst.cxx
index c9a321420eea..921642aa3910 100644
--- a/sc/source/filter/excel/xeextlst.cxx
+++ b/sc/source/filter/excel/xeextlst.cxx
@@ -276,6 +276,7 @@ XclExpExtCfRule::XclExpExtCfRule( const XclExpRoot& rRoot, const ScFormatEntry&
mxEntry.reset(new XclExpExtIconSet(*this, rIconSet, rPos));
pType = "iconSet";
}
+ break;
default:
break;
}
diff --git a/sc/source/filter/excel/xeformula.cxx b/sc/source/filter/excel/xeformula.cxx
index 031ff4732e73..fb747cb763eb 100644
--- a/sc/source/filter/excel/xeformula.cxx
+++ b/sc/source/filter/excel/xeformula.cxx
@@ -2143,6 +2143,7 @@ void XclExpFmlaCompImpl::ProcessExternalName( const XclExpScToken& rTokData )
mxData->mpLinkMgr->StoreCellRange(
nFileId, pScToken->GetString().getString(), aRefData.toAbs(*mxData->mpScBasePos));
}
+ break;
default:
; // nothing, avoid compiler warning
}
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
index 10d0c185147a..c559b4f235e2 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
@@ -286,8 +286,9 @@ void NumberFormatPropertyPanel::NotifyItemUpdate(
mpEdDecimals->SetValue(nPrecision);
mpEdLeadZeroes->SetValue(nLeadZeroes);
}
+ break;
default:
- ;
+ break;
}
}
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index d110c1d48dd8..2cc4f5a479e8 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -3519,6 +3519,7 @@ void ScOutputData::DrawEditBottomTop(DrawEditParam& rParam)
case SVX_VER_JUSTIFY_TOP:
// align to top
aLogicStart.Y() -= nGap;
+ break;
default:
;
}
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx
index 0e7e34058525..eef315ceebb7 100644
--- a/sd/source/filter/eppt/eppt.cxx
+++ b/sd/source/filter/eppt/eppt.cxx
@@ -201,6 +201,7 @@ void PPTWriter::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNum, sal_
// fall-through
case 2 : // semi-automatic
mnDiaMode++;
+ break;
default :
case 0 : // manual
break;
diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx
index 55a51c25e968..539cee5c083a 100644
--- a/sd/source/ui/sidebar/LayoutMenu.cxx
+++ b/sd/source/ui/sidebar/LayoutMenu.cxx
@@ -400,6 +400,7 @@ void LayoutMenu::AssignLayoutToSelectedSlides (AutoLayout aLayout)
if (pDrawViewShell != nullptr)
if (pDrawViewShell->GetEditMode() == EM_MASTERPAGE)
bMasterPageMode = true;
+ break;
}
default:
break;
diff --git a/sd/source/ui/sidebar/MasterPageContainerFiller.cxx b/sd/source/ui/sidebar/MasterPageContainerFiller.cxx
index 43e60a1ff9c3..5f591e45695b 100644
--- a/sd/source/ui/sidebar/MasterPageContainerFiller.cxx
+++ b/sd/source/ui/sidebar/MasterPageContainerFiller.cxx
@@ -90,6 +90,7 @@ void MasterPageContainerFiller::RunNextStep()
mrContainerAdapter.FillingDone();
mpScannerTask.reset();
}
+ break;
default:
break;
}
diff --git a/sd/source/ui/sidebar/MasterPagesSelector.cxx b/sd/source/ui/sidebar/MasterPagesSelector.cxx
index 2f61b25a320a..c547dc3f659b 100644
--- a/sd/source/ui/sidebar/MasterPagesSelector.cxx
+++ b/sd/source/ui/sidebar/MasterPagesSelector.cxx
@@ -446,6 +446,7 @@ void MasterPagesSelector::NotifyContainerChangeEvent (const MasterPageContainerC
{
int nIndex (GetIndexForToken(rEvent.maChildToken));
SetItem(nIndex, MasterPageContainer::NIL_TOKEN);
+ break;
}
default:
diff --git a/sd/source/ui/table/tablefunction.cxx b/sd/source/ui/table/tablefunction.cxx
index fd58cd4e1462..948cdd173f00 100644
--- a/sd/source/ui/table/tablefunction.cxx
+++ b/sd/source/ui/table/tablefunction.cxx
@@ -243,6 +243,7 @@ void DrawViewShell::FuTable(SfxRequest& rReq)
Cancel();
rReq.Done ();
+ break;
}
default:
break;
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index e610c44c0547..b72d9b29b36b 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -3088,9 +3088,10 @@ void DrawViewShell::ExecChar( SfxRequest &rReq )
FuText::ChangeFontSize( nSId == SID_GROW_FONT_SIZE, nullptr, pFontList, mpView );
GetViewFrame()->GetBindings().Invalidate( SID_ATTR_CHAR_FONTHEIGHT );
}
+ break;
}
default:
- ;
+ break;
}
mpDrawView->SetAttributes(aNewAttr);
diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx
index 6da4626265d7..307ee4f4db9f 100644
--- a/sd/source/ui/view/drviews3.cxx
+++ b/sd/source/ui/view/drviews3.cxx
@@ -473,6 +473,7 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq)
UpdatePreview( mpActualPage );
rReq.Done();
}
+ break;
default:
break;
diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx
index a88e24016679..95badc5a7966 100644
--- a/sd/source/ui/view/sdview3.cxx
+++ b/sd/source/ui/view/sdview3.cxx
@@ -229,6 +229,7 @@ bool View::InsertMetaFile( TransferableDataHelper& rDataHelper, const Point& rPo
break;
default: break;
}
+ break;
default: break;
}
diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx
index 133901eca70c..b90b396e7010 100644
--- a/sdext/source/presenter/PresenterController.cxx
+++ b/sdext/source/presenter/PresenterController.cxx
@@ -1038,6 +1038,7 @@ void PresenterController::HandleNumericKeyPress (
// Ignore unsupported key.
break;
}
+ break;
default:
// Ignore unsupported modifiers.
diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx
index 1094114d34e0..10fa37f42f36 100644
--- a/sfx2/source/doc/iframe.cxx
+++ b/sfx2/source/doc/iframe.cxx
@@ -379,6 +379,7 @@ uno::Any SAL_CALL IFrameObject::getPropertyValue(const OUString& aPropertyName)
{
aAny <<= (sal_Int32 ) maFrmDescr.GetMargin().Height();
}
+ break;
default: ;
}
return aAny;
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index 1c864f0864d1..e7795c5fc66a 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -120,6 +120,7 @@ static bool getNumericValue( double & rfVal, const OUString & rStr )
bNeg = true;
else if (trim[0] != '+')
return false;
+ break;
case 1: // 0x...
break;
default:
@@ -200,6 +201,7 @@ static bool getHyperValue( sal_Int64 & rnVal, const OUString & rStr )
bNeg = true;
else if (trim[0] != '+')
return false;
+ break;
case 1: // 0x...
break;
default:
@@ -728,9 +730,8 @@ Any TypeConverter_Impl::convertToSimpleType( const Any& rVal, TypeClass aDestina
switch (aSourceClass)
{
default:
- {
aRet <<= (toDouble( rVal ) != 0.0);
- }
+ break;
case TypeClass_ENUM: // exclude enums
break;
diff --git a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
index bd3e3da0605b..9608dc454fed 100644
--- a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
@@ -6223,6 +6223,7 @@ sal_Int16 GetCustomShapeConnectionTypeDefault( MSO_SPT eSpType )
case mso_sptVerticalScroll :
case mso_sptHorizontalScroll :
nGluePointType = css::drawing::EnhancedCustomShapeGluePointType::RECT;
+ break;
default: break;
}
}
diff --git a/svx/source/dialog/imapwnd.cxx b/svx/source/dialog/imapwnd.cxx
index 2c034e4e52a3..59e25e6c1ade 100644
--- a/svx/source/dialog/imapwnd.cxx
+++ b/svx/source/dialog/imapwnd.cxx
@@ -753,6 +753,7 @@ IMPL_LINK_TYPED( IMapWindow, MenuSelectHdl, Menu*, pMenu, bool )
case MN_DELETE1:
pView->DeleteMarked();
+ break;
default :
break;
diff --git a/sw/source/core/layout/flowfrm.cxx b/sw/source/core/layout/flowfrm.cxx
index 146454223359..c9698bd34fb1 100644
--- a/sw/source/core/layout/flowfrm.cxx
+++ b/sw/source/core/layout/flowfrm.cxx
@@ -194,6 +194,7 @@ bool SwFlowFrame::IsKeep( const SwAttrSet& rAttrs, bool bCheckIfLastRowShouldKee
case SVX_BREAK_PAGE_BOTH:
{
bKeep = false;
+ break;
}
default: break;
}
@@ -247,6 +248,7 @@ bool SwFlowFrame::IsKeep( const SwAttrSet& rAttrs, bool bCheckIfLastRowShouldKee
case SVX_BREAK_PAGE_BEFORE:
case SVX_BREAK_PAGE_BOTH:
bKeep = false;
+ break;
default: break;
}
}
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index f13961a3a6f6..171755e310f1 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -635,6 +635,7 @@ OUString SwFormToken::GetString() const
{
sData = OUString::number( nAuthorityField ) + sData;
}
+ break;
default:
break;
}
diff --git a/sw/source/filter/html/htmlsect.cxx b/sw/source/filter/html/htmlsect.cxx
index 03f333377096..c3703db5f670 100644
--- a/sw/source/filter/html/htmlsect.cxx
+++ b/sw/source/filter/html/htmlsect.cxx
@@ -820,8 +820,9 @@ void SwHTMLParser::MovePageDescAttrs( SwNode *pSrcNd,
if( bFormatBreak )
pDestContentNd->SetAttr( *pItem );
pSrcContentNd->ResetAttr( RES_BREAK );
+ break;
default:
- ;
+ break;
}
}
}
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index 068cba4a6267..0d64d8b68bc0 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -3726,8 +3726,9 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, bool bReadOptions,
case SVX_BREAK_PAGE_BOTH:
pFrameFormat->SetFormatAttr( *pItem2 );
pOldTextNd->ResetAttr( RES_BREAK );
+ break;
default:
- ;
+ break;
}
}
}
diff --git a/sw/source/filter/html/svxcss1.cxx b/sw/source/filter/html/svxcss1.cxx
index 41c9da144c86..23fce2fd99b7 100644
--- a/sw/source/filter/html/svxcss1.cxx
+++ b/sw/source/filter/html/svxcss1.cxx
@@ -1264,9 +1264,10 @@ static void ParseCSS1_font_variant( const CSS1Expression *pExpr,
rItemSet.Put( SvxCaseMapItem( (SvxCaseMap)nCaseMap,
aItemIds.nCaseMap ) );
}
+ break;
}
default:
- ;
+ break;
}
}
@@ -1290,9 +1291,10 @@ static void ParseCSS1_text_transform( const CSS1Expression *pExpr,
rItemSet.Put( SvxCaseMapItem( (SvxCaseMap)nCaseMap,
aItemIds.nCaseMap ) );
}
+ break;
}
default:
- ;
+ break;
}
}
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 4bb1527e4719..8bee90926d3a 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -2553,6 +2553,7 @@ void DocxAttributeOutput::StartRedline( const SwRedlineData * pRedlineData )
case nsRedlineType_t::REDLINE_FORMAT:
OSL_TRACE( "TODO DocxAttributeOutput::StartRedline()" );
+ break;
default:
break;
}
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index a6346c37a34f..97240285f392 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -786,6 +786,7 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt,
case mso_txflHorzA:
bVerticalText = true;
nTextRotationAngle = 9000;
+ break;
case mso_txflHorzN:
default :
break;
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index aaa4ed4c36e3..dfe1b5df6234 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -1304,6 +1304,7 @@ short WW8_BRCVer9::DetermineBorderProperties(short *pSpace) const
case 5:
case 22:
OSL_FAIL("Can't create these from the menus, please report");
+ break;
default:
case 23: //Only 3pt in the menus, but honours the size setting.
break;
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index f21acd041aeb..4fa9271e39da 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -99,6 +99,7 @@ SwLoadOptPage::SwLoadOptPage(vcl::Window* pParent, const SfxItemSet& rSet)
// use only these metrics
sal_Int32 nPos = m_pMetricLB->InsertEntry( sMetric );
m_pMetricLB->SetEntryData( nPos, reinterpret_cast<void*>((sal_IntPtr)eFUnit) );
+ break;
}
default:; //prevent warning
}
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
index 22742be8613d..9a0d509bfa02 100644
--- a/sw/source/ui/config/optpage.cxx
+++ b/sw/source/ui/config/optpage.cxx
@@ -155,6 +155,7 @@ SwContentOptPage::SwContentOptPage( vcl::Window* pParent,
sal_Int32 nPos = m_pVMetric->InsertEntry( sMetric );
m_pVMetric->SetEntryData( nPos, reinterpret_cast<void*>((sal_IntPtr)eFUnit) );
}
+ break;
}
default:;//prevent warning
}
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index d948c5d29906..b1795c156462 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -578,7 +578,10 @@ void SwDocStyleSheet::SetHidden( bool bValue )
bChg = true;
}
}
- default:;
+ break;
+
+ default:
+ break;
}
if( bChg )
@@ -625,7 +628,9 @@ bool SwDocStyleSheet::IsHidden( ) const
SwNumRule* pRule = rDoc.FindNumRulePtr( aName );
bRet = pRule && pRule->IsHidden( );
}
- default:;
+ break;
+ default:
+ break;
}
return bRet;
@@ -717,6 +722,7 @@ bool SwDocStyleSheet::HasParentSupport() const
case SfxStyleFamily::Char :
case SfxStyleFamily::Para :
case SfxStyleFamily::Frame: bRet = true;
+ break;
default:; //prevent warning
}
return bRet;
@@ -730,6 +736,7 @@ bool SwDocStyleSheet::HasClearParentSupport() const
case SfxStyleFamily::Para :
case SfxStyleFamily::Char :
case SfxStyleFamily::Frame: bRet = true;
+ break;
default:; //prevent warning
}
return bRet;
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index d686b78ac472..91199fc84878 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -1009,6 +1009,7 @@ void SwTableShell::Execute(SfxRequest &rReq)
case HEADLINE_BOXATTRCOPY:
case HEADLINE_BOXATRCOLLCOPY:
rSh.SplitTable(pType->GetValue()) ;
+ break;
default: ;//wrong parameter, do nothing
}
}
diff --git a/sw/source/uibase/uno/unotxvw.cxx b/sw/source/uibase/uno/unotxvw.cxx
index 3411f39c5a98..c3b98384bc73 100644
--- a/sw/source/uibase/uno/unotxvw.cxx
+++ b/sw/source/uibase/uno/unotxvw.cxx
@@ -1436,6 +1436,7 @@ OUString SwXTextViewCursor::getString()
SwWrtShell& rSh = m_pView->GetWrtShell();
SwPaM* pShellCursor = rSh.GetCursor();
SwUnoCursorHelper::GetTextFromPam(*pShellCursor, uRet);
+ break;
}
default:;//prevent warning
}
@@ -1467,6 +1468,7 @@ void SwXTextViewCursor::setString(const OUString& aString)
SwWrtShell& rSh = m_pView->GetWrtShell();
SwCursor* pShellCursor = rSh.GetSwCursor();
SwUnoCursorHelper::SetString(*pShellCursor, aString);
+ break;
}
default:;//prevent warning
}
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index 2b0269c06105..3494aade9628 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -1637,7 +1637,9 @@ void VCLXWindow::setProperty( const OUString& PropertyName, const css::uno::Any&
case WINDOW_GROUPBOX:
case WINDOW_FIXEDLINE:
pWindow->SetPaintTransparent( false );
- default: ;
+ break;
+ default:
+ break;
}
pWindow->Invalidate(); // Invalidate if control does not respond to it
}
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx
index e6f610a5ee2d..ac6fac938b68 100644
--- a/vcl/source/filter/wmf/winmtf.cxx
+++ b/vcl/source/filter/wmf/winmtf.cxx
@@ -1815,6 +1815,8 @@ void WinMtfOutput::ResolveBitmapActions( BSaveStructList_impl& rSaveList )
SetRasterOp( R2_NOT );
DrawRect( aRect, false );
}
+ break;
+
case 0xa : // no operation
break;
}
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index cd44a211f2b8..4575b22c7b58 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -983,6 +983,7 @@ void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* p
case WINDOW_ERRORBOX:
case WINDOW_QUERYBOX:
nFrameStyle |= SalFrameStyleFlags::DIALOG;
+ break;
default:
break;
}
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx
index 5ac9cc437c78..9bbebce6c042 100644
--- a/vcl/unx/kde4/KDESalGraphics.cxx
+++ b/vcl/unx/kde4/KDESalGraphics.cxx
@@ -903,6 +903,7 @@ bool KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
contentRect = boundingRect = rect;
retVal = true;
}
+ break;
}
default:
break;