summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}