summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-10 17:12:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-10 17:12:16 +0200
commit6bf020fb7ef0a13188ece51d41dd101141b42b41 (patch)
tree3f80f5f0a586722a935330a8f166e11de2806c63
parent8eb8b9c1d27d97c722ecd992521226a7a49d984c (diff)
Add SAL_FALLTHROUGH, where apparently appropriate
Change-Id: I0dd8f3c1d9330bc58cf52212c9752adf51444d3d
-rw-r--r--sw/source/filter/html/htmlform.cxx1
-rw-r--r--sw/source/ui/frmdlg/column.cxx1
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx2
-rw-r--r--sw/source/uibase/uiview/srcview.cxx1
4 files changed, 5 insertions, 0 deletions
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;