diff options
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx | 3 | ||||
-rw-r--r-- | odk/examples/cpp/complextoolbarcontrols/exports.cxx | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx index a1950a492791..671fbd26794d 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx @@ -88,8 +88,7 @@ Sequence< ::rtl::OUString > SkeletonDriver::getSupportedServiceNames_Static( ) { /// which service is supported /// for more information @see com.sun.star.sdbc.Driver - Sequence< ::rtl::OUString > aSNS( 1 ); - aSNS[0] = ::rtl::OUString("com.sun.star.sdbc.Driver"); + Sequence<OUString> aSNS { ::rtl::OUString("com.sun.star.sdbc.Driver") }; return aSNS; } diff --git a/odk/examples/cpp/complextoolbarcontrols/exports.cxx b/odk/examples/cpp/complextoolbarcontrols/exports.cxx index 35a4f3910128..f66191eca316 100644 --- a/odk/examples/cpp/complextoolbarcontrols/exports.cxx +++ b/odk/examples/cpp/complextoolbarcontrols/exports.cxx @@ -39,14 +39,12 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(const sal_Char* pImplNa if (sImplName == MYLISTENER_IMPLEMENTATIONNAME) { - css::uno::Sequence< ::rtl::OUString > lNames(1); - lNames[0] = MYLISTENER_IMPLEMENTATIONNAME; + css::uno::Sequence<OUString> lNames { MYLISTENER_IMPLEMENTATIONNAME }; xFactory = ::cppu::createSingleFactory(xSMGR, sImplName, MyListener::st_createInstance, lNames); } else if (sImplName == MYPROTOCOLHANDLER_IMPLEMENTATIONNAME) { - css::uno::Sequence< ::rtl::OUString > lNames(1); - lNames[0] = MYPROTOCOLHANDLER_SERVICENAME; + css::uno::Sequence<OUString> lNames { MYPROTOCOLHANDLER_SERVICENAME }; xFactory = ::cppu::createSingleComponentFactory(MyProtocolHandler_createInstance, sImplName, lNames); } |