From 6bf020fb7ef0a13188ece51d41dd101141b42b41 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 May 2016 17:12:16 +0200 Subject: Add SAL_FALLTHROUGH, where apparently appropriate Change-Id: I0dd8f3c1d9330bc58cf52212c9752adf51444d3d --- sw/source/filter/html/htmlform.cxx | 1 + sw/source/ui/frmdlg/column.cxx | 1 + sw/source/uibase/docvw/edtwin.cxx | 2 ++ sw/source/uibase/uiview/srcview.cxx | 1 + 4 files changed, 5 insertions(+) diff --git a/sw/source/filter/html/htmlform.cxx b/sw/source/filter/html/htmlform.cxx index 008c5163eb47..a93a7812caf5 100644 --- a/sw/source/filter/html/htmlform.cxx +++ b/sw/source/filter/html/htmlform.cxx @@ -1585,6 +1585,7 @@ void SwHTMLParser::InsertInput() case HTML_IT_BUTTON: bKeepCRLFInValue = true; + SAL_FALLTHROUGH; case HTML_IT_SUBMIT: case HTML_IT_RESET: pType = "CommandButton"; diff --git a/sw/source/ui/frmdlg/column.cxx b/sw/source/ui/frmdlg/column.cxx index 7f0480f4ddc8..6a55d0fb1b66 100644 --- a/sw/source/ui/frmdlg/column.cxx +++ b/sw/source/ui/frmdlg/column.cxx @@ -898,6 +898,7 @@ void SwColumnPage::UpdateCols() switch(nCols) { case 3: bEnable3 = true; + SAL_FALLTHROUGH; case 2: bEnable12= true; break; default: /* do nothing */; } diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 8f1ac20a5d00..80571d231b28 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -4036,6 +4036,7 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt) if (pWrdCnt) pWrdCnt->UpdateCounts(); } + SAL_FALLTHROUGH; case MOUSE_LEFT + KEY_SHIFT: case MOUSE_LEFT + KEY_SHIFT + KEY_MOD1: @@ -4487,6 +4488,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) bCallBase = false; break; } + SAL_FALLTHROUGH; case MOUSE_LEFT + KEY_MOD1: case MOUSE_LEFT + KEY_MOD2: case MOUSE_LEFT + KEY_SHIFT + KEY_MOD1: diff --git a/sw/source/uibase/uiview/srcview.cxx b/sw/source/uibase/uiview/srcview.cxx index 37c366f57d96..8e0b6c48fa16 100644 --- a/sw/source/uibase/uiview/srcview.cxx +++ b/sw/source/uibase/uiview/srcview.cxx @@ -593,6 +593,7 @@ void SwSrcView::StartSearchAndReplace(const SvxSearchItem& rSearchItem, break; case SvxSearchCmd::REPLACE_ALL: bAll = true; + SAL_FALLTHROUGH; case SvxSearchCmd::REPLACE: nFound = pTextView->Replace( aSearchOpt, bAll, bForward ); break; -- cgit