summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-11-15 20:58:14 +0200
committerTor Lillqvist <tml@collabora.com>2018-11-15 20:58:14 +0200
commit65372d470c4b8c4f1b2340b6d2af1544b1141d80 (patch)
tree9164ee270da8ee4a2614fc528365fab02437d6e5
parente807d6158e5bb030e2f884571493f65b285875f8 (diff)
WaE: -Wimplicit-fallthrough
Change-Id: I4d80a64a228c7225df13ca17d933b8f940ddc3e3
-rw-r--r--sw/source/core/fields/reffld.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/fields/reffld.cxx b/sw/source/core/fields/reffld.cxx
index bdeb3f9f42b8..0ba15e80664e 100644
--- a/sw/source/core/fields/reffld.cxx
+++ b/sw/source/core/fields/reffld.cxx
@@ -559,7 +559,9 @@ void SwGetRefField::UpdateField( const SwTextField* pFieldTextAttr )
default:
assert(false); // fall through to appease MSVC C4701
+#ifdef NDEBUG
SAL_FALLTHROUGH;
+#endif
// "Reference" (whole Text)
case REF_CONTENT:
nStart = 0;
@@ -601,7 +603,9 @@ void SwGetRefField::UpdateField( const SwTextField* pFieldTextAttr )
default:
assert(false); // fall through to appease MSVC C4701
+#ifdef NDEBUG
SAL_FALLTHROUGH;
+#endif
case REF_SETREFATTR:
nStart = nNumStart;
nEnd = nNumEnd;