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() virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception) override throw (css::uno::RuntimeException, std::exception) override
{ {
css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.AutoRecovery" }; return {"com.sun.star.frame.AutoRecovery"};
return aSeq;
} }
// XInterface // XInterface

View File

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

View File

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

View File

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

View File

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