summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/model/template/DataInterpreter.cxx3
-rw-r--r--chart2/source/view/axes/DateScaling.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx
index 3f81a0eee22a..9cc8c8e66a4f 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -383,8 +383,7 @@ bool DataInterpreter::UseCategoriesAsX( const Sequence< beans::PropertyValue > &
Sequence< OUString > DataInterpreter::getSupportedServiceNames_Static()
{
- Sequence< OUString > aServices( 1 );
- aServices[0] = "com.sun.star.chart2.DataInterpreter";
+ Sequence<OUString> aServices { "com.sun.star.chart2.DataInterpreter" };
return aServices;
}
diff --git a/chart2/source/view/axes/DateScaling.cxx b/chart2/source/view/axes/DateScaling.cxx
index d1ee1d9c6e53..0dd3c697a70c 100644
--- a/chart2/source/view/axes/DateScaling.cxx
+++ b/chart2/source/view/axes/DateScaling.cxx
@@ -207,8 +207,7 @@ OUString SAL_CALL InverseDateScaling::getServiceName()
uno::Sequence< OUString > InverseDateScaling::getSupportedServiceNames_Static()
{
- uno::Sequence< OUString > aSeq( 1 );
- aSeq.getArray()[0] = lcl_aServiceName_InverseDateScaling;
+ uno::Sequence<OUString> aSeq { lcl_aServiceName_InverseDateScaling };
return aSeq;
}