summaryrefslogtreecommitdiff
path: root/scaddins/source/analysis
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-15 10:14:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-15 10:14:54 +0100
commit0d58e6723973211fb57d18dc8aef65510c1f965e (patch)
tree34ec88715c77d83b6ae7121d78525a254763e39c /scaddins/source/analysis
parentac97f3388dadfe0127ee2b5c97ccadfb9dd64f39 (diff)
scaddins: Use appropriate OUString functions on string constants
Change-Id: If51c63d22223f968e185a05b79aed5bf861405a4
Diffstat (limited to 'scaddins/source/analysis')
-rw-r--r--scaddins/source/analysis/analysis.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx
index c0137f372e7d..02c6ecb75e4f 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -1149,8 +1149,8 @@ OUString SAL_CALL AnalysisAddIn::getComplex( double fR, double fI, const uno::An
case uno::TypeClass_STRING:
{
const OUString* pSuff = ( const OUString* ) rSuff.getValue();
- bi = pSuff->equalsAscii( "i" ) || pSuff->isEmpty();
- if( !bi && !pSuff->equalsAscii( "j" ) )
+ bi = *pSuff == "i" || pSuff->isEmpty();
+ if( !bi && *pSuff != "j" )
throw lang::IllegalArgumentException();
}
break;