[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Sep 19 09:21:54 PDT 2012


 sw/source/core/doc/dbgoutsw.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 538760dc0c9baaf0e15abefe4aae32448ba61592
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jul 24 13:55:49 2012 +0200

    warning C4702: unreachable code
    
    Change-Id: Ia3e119e1b9ac68fbdd9aa4a9a5177e28c1a0d605
    (cherry picked from commit b265709fbf9ff9f03645cbcbbc441699402c73a8)

diff --git a/sw/source/core/doc/dbgoutsw.cxx b/sw/source/core/doc/dbgoutsw.cxx
old mode 100644
new mode 100755
index b14e07d..ad42cff
--- a/sw/source/core/doc/dbgoutsw.cxx
+++ b/sw/source/core/doc/dbgoutsw.cxx
@@ -973,12 +973,9 @@ String lcl_TokenType2Str(FormTokenType nType)
     case TOKEN_END:
         return String("END", RTL_TEXTENCODING_ASCII_US);
     default:
+        OSL_FAIL("should not be reached");
         return String("??", RTL_TEXTENCODING_ASCII_US);
     }
-
-    OSL_FAIL("should not be reached");
-
-    return  String("??", RTL_TEXTENCODING_ASCII_US);
 }
 
 String lcl_dbg_out(const SwFormToken & rToken)


More information about the Libreoffice-commits mailing list