summaryrefslogtreecommitdiff
path: root/chart2/source/tools/NameContainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/tools/NameContainer.cxx')
-rw-r--r--chart2/source/tools/NameContainer.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/tools/NameContainer.cxx b/chart2/source/tools/NameContainer.cxx
index 8961dd7b51df..107b289c83d9 100644
--- a/chart2/source/tools/NameContainer.cxx
+++ b/chart2/source/tools/NameContainer.cxx
@@ -73,8 +73,7 @@ sal_Bool SAL_CALL NameContainer::supportsService( const OUString& ServiceName )
Sequence< OUString > SAL_CALL NameContainer::getSupportedServiceNames()
throw( ::com::sun::star::uno::RuntimeException, std::exception )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[ 0 ] = m_aServicename;
+ Sequence<OUString> aSNS { m_aServicename };
return aSNS;
}