diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-10 17:05:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-10 17:05:56 +0200 |
commit | 23b5935c7d5e14196bf2b961c7702281bee97ec3 (patch) | |
tree | 792bd9751a5169e7eea37d3fb6d7a9b15e65ab02 /svtools | |
parent | 3dfcfdb9ed32c2fff3a3df510e289db7697cdce1 (diff) |
Add SAL_FALLTHROUGH, where apparently appropriate
Change-Id: I8fcd7bf2583c935e060a29e43c88614681d81d13
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 3 | ||||
-rw-r--r-- | svtools/source/brwbox/ebbcontrols.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/fileview.cxx | 1 | ||||
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index 486771523e3e..32ed1364a788 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -1683,6 +1683,7 @@ bool BrowseBox::ProcessKey( const KeyEvent& rEvt ) case KEY_TAB: if ( !bColumnCursor ) break; + SAL_FALLTHROUGH; case KEY_RIGHT: nId = BROWSER_CURSORRIGHT; break; case KEY_LEFT: nId = BROWSER_CURSORLEFT; break; case KEY_SPACE: nId = BROWSER_SELECT; break; @@ -1817,6 +1818,7 @@ void BrowseBox::Dispatch( sal_uInt16 nId ) nNewId != HandleColumnId && GoToColumnId( nNewId ); break; } + SAL_FALLTHROUGH; case BROWSER_CURSORENDOFFILE: GoToRow( nRowCount - 1, false ); break; @@ -1856,6 +1858,7 @@ void BrowseBox::Dispatch( sal_uInt16 nId ) } break; } + SAL_FALLTHROUGH; case BROWSER_CURSORTOPOFFILE: GoToRow( 0, false ); break; diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx index cfd1d4798d7f..9bdd524f3af5 100644 --- a/svtools/source/brwbox/ebbcontrols.cxx +++ b/svtools/source/brwbox/ebbcontrols.cxx @@ -109,6 +109,7 @@ namespace svt case KEY_RETURN: if (rBox.IsInDropDown()) return false; + SAL_FALLTHROUGH; default: return true; } @@ -188,6 +189,7 @@ namespace svt case KEY_PAGEDOWN: if (rBox.IsTravelSelect()) return false; + SAL_FALLTHROUGH; default: return true; } diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx index 51e38900d7a8..7e338bef0beb 100644 --- a/svtools/source/contnr/fileview.cxx +++ b/svtools/source/contnr/fileview.cxx @@ -1170,6 +1170,7 @@ FileViewResult SvtFileView::Initialize( case eStillRunning: OSL_ENSURE( pAsyncDescriptor, "SvtFileView::Initialize: we told it to read synchronously!" ); + SAL_FALLTHROUGH; case eSuccess: return eResult; } diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index d27cc0e992d6..931890b2da48 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -1760,6 +1760,7 @@ int HTMLParser::FilterXMP( int nToken ) case HTML_NEWPARA: if( bPre_IgnoreNewPara ) nToken = 0; + SAL_FALLTHROUGH; case HTML_TEXTTOKEN: case HTML_NONBREAKSPACE: case HTML_SOFTHYPH: @@ -1800,6 +1801,7 @@ int HTMLParser::FilterListing( int nToken ) case HTML_NEWPARA: if( bPre_IgnoreNewPara ) nToken = 0; + SAL_FALLTHROUGH; case HTML_TEXTTOKEN: case HTML_NONBREAKSPACE: case HTML_SOFTHYPH: |