summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-05 11:06:18 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 12:58:12 +0200
commit0a9ef5a18e148c7a5c9a088e153a7873d1564841 (patch)
tree3c3bc21e7ee4f836a1d056695175e0b1a91eda26 /chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
parent7944301424aac0943e4ecc0410f495b210ad3b79 (diff)
convert OUString 0==compareToAscii to equalsAscii
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
Diffstat (limited to 'chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx')
-rw-r--r--chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx b/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
index e2323de4799e..b212b598efac 100644
--- a/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
+++ b/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
@@ -77,7 +77,7 @@ void ChartTypeUnoDlg::implInitialize(const uno::Any& _rValue)
beans::PropertyValue aProperty;
if (_rValue >>= aProperty)
{
- if (0 == aProperty.Name.compareToAscii("ChartModel"))
+ if (aProperty.Name.equalsAscii("ChartModel"))
m_xChartModel.set(aProperty.Value,uno::UNO_QUERY);
else
ChartTypeUnoDlg_BASE::implInitialize(_rValue);