[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 15 19:03:18 UTC 2018


 sw/source/core/fields/reffld.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 65372d470c4b8c4f1b2340b6d2af1544b1141d80
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Nov 15 20:58:14 2018 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Nov 15 20:58:14 2018 +0200

    WaE: -Wimplicit-fallthrough
    
    Change-Id: I4d80a64a228c7225df13ca17d933b8f940ddc3e3

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;


More information about the Libreoffice-commits mailing list