summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-15 10:10:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-15 10:10:56 +0100
commita5179f0cf8ee8c244d5cef2781c78755804a23ba (patch)
tree3b9c71d5777b3371809814ca13cebdded1c57853 /chart2
parent6c0c2fa0178dfdddc530ae4727949aa445567617 (diff)
chart2: Use appropriate OUString functions on string constants
Change-Id: Ia5a340049f787d7173140482853730a00d5d12df
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx2
-rw-r--r--chart2/source/view/main/DummyXShape.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx b/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
index 68c6c188eb76..ee3d904814a8 100644
--- a/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
+++ b/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
@@ -71,7 +71,7 @@ void ChartTypeUnoDlg::implInitialize(const uno::Any& _rValue)
beans::PropertyValue aProperty;
if (_rValue >>= aProperty)
{
- if (aProperty.Name.equalsAscii("ChartModel"))
+ if (aProperty.Name == "ChartModel")
m_xChartModel.set(aProperty.Value,uno::UNO_QUERY);
else
ChartTypeUnoDlg_BASE::implInitialize(_rValue);
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx
index a5a35e26a5d6..6f2378ea7ec3 100644
--- a/chart2/source/view/main/DummyXShape.cxx
+++ b/chart2/source/view/main/DummyXShape.cxx
@@ -752,7 +752,7 @@ void DummyRectangle::render()
{
uno::Any co = itr->second;
rtl::OUString aGradientValue = co.get<rtl::OUString>();
- if (aGradientValue.endsWithAsciiL("1", 1))
+ if (aGradientValue.endsWith("1"))
{
pChart->m_GLRender.SetChartTransparencyGradient(1);
}