diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-25 08:42:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-25 08:42:15 +0200 |
commit | a890e3189b4146aba3dfaf2f3e1ac212bb02c8a4 (patch) | |
tree | b1fdc3e25e11fcdcbe2456753a244abd2b3ca25a /embedserv | |
parent | 3ec901fab2cb3e1a1c8222498761e72c28175bd3 (diff) |
SAL_FALLTRHOUGH in Windows-only code
Change-Id: If35da46c209746a86687e1c3f60f72f2f08aa681
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/embed/ed_ioleobject.cxx | 2 | ||||
-rw-r--r-- | embedserv/source/embed/tracker.cxx | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/embedserv/source/embed/ed_ioleobject.cxx b/embedserv/source/embed/ed_ioleobject.cxx index 986d6fdef991..3a79799231df 100644 --- a/embedserv/source/embed/ed_ioleobject.cxx +++ b/embedserv/source/embed/ed_ioleobject.cxx @@ -192,7 +192,7 @@ STDMETHODIMP EmbedDocument_Impl::DoVerb( pActiveSite,TRUE))) return NOERROR; - // intended fall through + SAL_FALLTHROUGH; case OLEIVERB_OPEN: OSL_ENSURE(m_pDocHolder,"no document to open"); diff --git a/embedserv/source/embed/tracker.cxx b/embedserv/source/embed/tracker.cxx index fc8986061c2c..f0e3954d2e29 100644 --- a/embedserv/source/embed/tracker.cxx +++ b/embedserv/source/embed/tracker.cxx @@ -16,6 +16,11 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ + +#include <sal/config.h> + +#include <sal/types.h> + #ifdef _MSC_VER #pragma warning(disable : 4917 4555) #endif @@ -442,6 +447,7 @@ BOOL Tracker::TrackHandle(int nHandle,HWND hWnd,POINT point,HWND hWndClipTo) case WM_KEYDOWN: if (msg.wParam != VK_ESCAPE) break; + SAL_FALLTHROUGH; case WM_RBUTTONDOWN: if (bMoved) { |