tdf#88205 Adapt uses of css::uno::Sequence to use initialize_list ctor

Change-Id: Idb456f6cf0b4f3dda4b92d341ae6de59cb9879e2
Reviewed-on: https://gerrit.libreoffice.org/29797
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Hieronymous 2016-10-14 01:17:10 +05:30 committed by Noel Grandin
parent db0cb39225
commit dd5e0814cd
6 changed files with 6 additions and 12 deletions

View File

@ -453,8 +453,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.AutoRecovery" };
return aSeq;
return {"com.sun.star.frame.AutoRecovery"};
}
// XInterface

View File

@ -138,8 +138,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.Frame" };
return aSeq;
return {"com.sun.star.frame.Frame"};
}
// XComponentLoader

View File

@ -125,8 +125,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.SessionListener" };
return aSeq;
return {"com.sun.star.frame.SessionListener"};
}
virtual void SAL_CALL disposing(const css::lang::EventObject&) throw (css::uno::RuntimeException, std::exception) override;

View File

@ -153,8 +153,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.util.PathSubstitution" };
return aSeq;
return {"com.sun.star.util.PathSubstitution"};
}
// XStringSubstitution

View File

@ -81,8 +81,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.TaskCreator" };
return aSeq;
return {"com.sun.star.frame.TaskCreator"};
}
// XSingleServiceFactory

View File

@ -54,8 +54,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override
{
css::uno::Sequence< OUString > aRet { "com.sun.star.util.URLTransformer" };
return aRet;
return {"com.sun.star.util.URLTransformer"};
}
virtual sal_Bool SAL_CALL parseStrict( css::util::URL& aURL )