[Libreoffice-commits] .: sw/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Tue Jul 24 04:55:59 PDT 2012


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

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

    warning C4702: unreachable code
    
    Change-Id: Ia3e119e1b9ac68fbdd9aa4a9a5177e28c1a0d605

diff --git a/sw/source/core/doc/dbgoutsw.cxx b/sw/source/core/doc/dbgoutsw.cxx
old mode 100644
new mode 100755
index 89bc16e..aa6c9e8
--- a/sw/source/core/doc/dbgoutsw.cxx
+++ b/sw/source/core/doc/dbgoutsw.cxx
@@ -974,12 +974,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