summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/chart/axisconverter.cxx
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2012-07-12 22:10:17 +0200
committerEike Rathke <erack@redhat.com>2012-07-13 16:36:04 +0200
commita7674482254ee996b1c4fee60f3064778be369aa (patch)
treedcafebf4d72d6d26ad949f0d18a000ea00f02315 /oox/source/drawingml/chart/axisconverter.cxx
parent0cba5e5d25bf2f30c8500e1e673a7ef9e8e8d352 (diff)
Search for char instead of 1 char long string, when possible.
It is faster and even avoid memory allocation somtimes. Change-Id: Ic12ff70e95953de44ef5798131150669d07a5445
Diffstat (limited to 'oox/source/drawingml/chart/axisconverter.cxx')
-rw-r--r--oox/source/drawingml/chart/axisconverter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/chart/axisconverter.cxx b/oox/source/drawingml/chart/axisconverter.cxx
index d07d28c79ae8..2a0ea142a138 100644
--- a/oox/source/drawingml/chart/axisconverter.cxx
+++ b/oox/source/drawingml/chart/axisconverter.cxx
@@ -316,7 +316,7 @@ void AxisConverter::convertFromModel( const Reference< XCoordinateSystem >& rxCo
if( (aScaleData.AxisType == cssc2::AxisType::REALNUMBER) || (aScaleData.AxisType == cssc2::AxisType::PERCENT) )
{
- if( mrModel.maNumberFormat.maFormatCode.indexOfAsciiL("%",1) >= 0)
+ if( mrModel.maNumberFormat.maFormatCode.indexOf('%') >= 0)
mrModel.maNumberFormat.mbSourceLinked = false;
getFormatter().convertNumberFormat( aAxisProp, mrModel.maNumberFormat );
}