summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xecontent.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-10 16:33:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-05-10 16:34:14 +0100
commitcf6516632379688fa2b4c66f5e1644355fb424fe (patch)
treea28a2882acabc445121ff3baeda76b2f3e8bf031 /sc/source/filter/excel/xecontent.cxx
parent07d01742c69f1c0335bc7e1b57abd8341ce255e7 (diff)
WaE: unsafe mix of bool and sal_Bool
Change-Id: Ie2fcc1a5404c62dc15b98f99f89631795df91b01
Diffstat (limited to 'sc/source/filter/excel/xecontent.cxx')
-rw-r--r--sc/source/filter/excel/xecontent.cxx29
1 files changed, 19 insertions, 10 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index fb974d943177..6a23166aa09a 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -785,35 +785,44 @@ namespace {
const char* GetOperatorString(ScConditionMode eMode, bool& bFrmla2)
{
+ const char *pRet = "";
switch(eMode)
{
case SC_COND_EQUAL:
- return "equal";
+ pRet = "equal";
+ break;
case SC_COND_LESS:
- return "lessThan";
+ pRet = "lessThan";
+ break;
case SC_COND_GREATER:
- return "greaterThan";
+ pRet = "greaterThan";
+ break;
case SC_COND_EQLESS:
- return "lessThanOrEqual";
+ pRet = "lessThanOrEqual";
+ break;
case SC_COND_EQGREATER:
- return "greaterThanOrEqual";
+ pRet = "greaterThanOrEqual";
+ break;
case SC_COND_NOTEQUAL:
- return "notEqual";
+ pRet = "notEqual";
+ break;
case SC_COND_BETWEEN:
bFrmla2 = true;
- return "between";
+ pRet = "between";
+ break;
case SC_COND_NOTBETWEEN:
bFrmla2 = true;
- return "notBetween";
+ pRet = "notBetween";
+ break;
case SC_COND_DUPLICATE:
case SC_COND_NOTDUPLICATE:
case SC_COND_DIRECT:
case SC_COND_NONE:
default:
- return "";
+ pRet = "";
break;
}
- return "";
+ return pRet;
}
const char* GetTypeString(ScConditionMode eMode)