summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-06-11 07:29:36 +0000
committerJan Holesovsky <kendy@suse.cz>2012-06-15 16:03:01 +0200
commit6fea8c175b03471cf24481f37dce8a857f2a525c (patch)
treeca002fc4090f0ef7231bc4cd2d652dd03d6e1ff6 /sc
parent23b2612251e8638e662fddd7e279cefcf1c4d896 (diff)
eMode may be used uninitialized in this function
Change-Id: Ic5d17c360be7f3cb3d5004327d2a6d76dce40c52 Signed-off-by: Jan Holesovsky <kendy@suse.cz>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/condformat/condformatdlg.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx
index 27127e90d3cb..fdfdb1a93f8e 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();