diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-10 17:12:16 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-07-20 01:26:06 -0400 |
commit | 95b6d0406c3bb4680d28696be2534b3c17f329c0 (patch) | |
tree | 30e21e2bc83c674bedd9bbfc7d2b1fb56b7089b4 /sw | |
parent | e7b11300cd813f821d1ec5cb4633ce2c5f7d1b9f (diff) |
Add SAL_FALLTHROUGH, where apparently appropriate
Change-Id: I0dd8f3c1d9330bc58cf52212c9752adf51444d3d
(cherry picked from commit 6bf020fb7ef0a13188ece51d41dd101141b42b41)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/html/htmlform.cxx | 1 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/column.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uiview/srcview.cxx | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/filter/html/htmlform.cxx b/sw/source/filter/html/htmlform.cxx index bc6e71c2dd7d..0e0f90505f21 100644 --- a/sw/source/filter/html/htmlform.cxx +++ b/sw/source/filter/html/htmlform.cxx @@ -1586,6 +1586,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 2eb7d8c7a916..53ae1684dd77 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -4034,6 +4034,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: @@ -4478,6 +4479,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 0c55eedca0a4..d12130fb61bc 100644 --- a/sw/source/uibase/uiview/srcview.cxx +++ b/sw/source/uibase/uiview/srcview.cxx @@ -600,6 +600,7 @@ sal_uInt16 SwSrcView::StartSearchAndReplace(const SvxSearchItem& rSearchItem, break; case SvxSearchCmd::REPLACE_ALL: bAll = true; + SAL_FALLTHROUGH; case SvxSearchCmd::REPLACE: nFound = pTextView->Replace( aSearchOpt, bAll, bForward ); break; |