From adc20c3937f3119d39af5a0c8e4a439d8127fe63 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 4 Jun 2014 08:54:40 +0200 Subject: compareToAscii -> equalsAscii convert places using compareToAscii that should be using equalsAscii Change-Id: I97b4da7f6e867c3967b2f65b70d6886f83b4a4e5 --- scaddins/source/analysis/analysis.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scaddins') diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index 8d2470555740..6349b7b27247 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -1153,7 +1153,7 @@ OUString SAL_CALL AnalysisAddIn::getComplex( double fR, double fI, const uno::An { const OUString* pSuff = ( const OUString* ) rSuff.getValue(); bi = pSuff->equalsAscii( "i" ) || pSuff->isEmpty(); - if( !bi && pSuff->compareToAscii( "j" ) != 0 ) + if( !bi && !pSuff->equalsAscii( "j" ) ) throw lang::IllegalArgumentException(); } break; -- cgit