[Libreoffice-commits] .: sc/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Mon Jun 11 00:31:24 PDT 2012


 sc/source/ui/condformat/condformatdlg.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 0d6e3233a7062c895dd6e00121ab977bde6dea7d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jun 11 09:29:36 2012 +0200

    eMode may be used uninitialized in this function
    
    Change-Id: Ic5d17c360be7f3cb3d5004327d2a6d76dce40c52

diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx
index 27127e9..fdfdb1a 100644
--- a/sc/source/ui/condformat/condformatdlg.cxx
+++ b/sc/source/ui/condformat/condformatdlg.cxx
@@ -51,6 +51,7 @@
 
 #include "globstr.hrc"
 
+#include <cassert>
 #include <iostream>
 
 namespace {
@@ -654,7 +655,8 @@ ScFormatEntry* ScCondFrmtEntry::createConditionEntry() const
 	    eMode = SC_COND_NOTDUPLICATE;
 	    break;
 	default:
-	    break;
+        assert(false); // this cannot happen
+        return NULL;
     }
 
     rtl::OUString aExpr1 = maEdVal1.GetText();


More information about the Libreoffice-commits mailing list