summaryrefslogtreecommitdiff
path: root/framework/source/uielement/popuptoolbarcontroller.cxx
diff options
context:
space:
mode:
authorHieronymous <sudk1896@gmail.com>2016-10-14 14:49:51 +0530
committerJulien Nabet <serval2412@yahoo.fr>2016-10-16 10:58:15 +0000
commitad59a9a9cd1e48fa5120c98930f49fd02551185c (patch)
tree79fe2538e68cb491610034396a1e43fdebcd7668 /framework/source/uielement/popuptoolbarcontroller.cxx
parent01dc6d098def20d6db57a13e8b2d79492a051fce (diff)
tdf#88205 css::uno::Sequence to use initializer_list ctor.
Change-Id: If4f2e8e369930f028c342bc81c4f49df7350e238 Reviewed-on: https://gerrit.libreoffice.org/29811 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'framework/source/uielement/popuptoolbarcontroller.cxx')
-rw-r--r--framework/source/uielement/popuptoolbarcontroller.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/framework/source/uielement/popuptoolbarcontroller.cxx b/framework/source/uielement/popuptoolbarcontroller.cxx
index e23f64ce2fa8..ee8c0d3ba6de 100644
--- a/framework/source/uielement/popuptoolbarcontroller.cxx
+++ b/framework/source/uielement/popuptoolbarcontroller.cxx
@@ -310,8 +310,7 @@ sal_Bool GenericPopupToolbarController::supportsService(OUString const & rServic
css::uno::Sequence<OUString> GenericPopupToolbarController::getSupportedServiceNames()
throw (css::uno::RuntimeException)
{
- css::uno::Sequence<OUString> aRet { "com.sun.star.frame.ToolbarController" };
- return aRet;
+ return {"com.sun.star.frame.ToolbarController"};
}
ToolBoxItemBits GenericPopupToolbarController::getDropDownStyle() const
@@ -515,8 +514,7 @@ sal_Bool SaveToolbarController::supportsService( OUString const & rServiceName )
css::uno::Sequence< OUString > SaveToolbarController::getSupportedServiceNames()
throw ( css::uno::RuntimeException )
{
- css::uno::Sequence<OUString> aRet { "com.sun.star.frame.ToolbarController" };
- return aRet;
+ return {"com.sun.star.frame.ToolbarController"};
}
class NewToolbarController : public PopupMenuToolbarController
@@ -565,8 +563,7 @@ sal_Bool NewToolbarController::supportsService(OUString const & rServiceName)
css::uno::Sequence<OUString> NewToolbarController::getSupportedServiceNames()
throw (css::uno::RuntimeException)
{
- css::uno::Sequence<OUString> aRet { "com.sun.star.frame.ToolbarController" };
- return aRet;
+ return {"com.sun.star.frame.ToolbarController"};
}
void SAL_CALL NewToolbarController::initialize( const css::uno::Sequence< css::uno::Any >& aArguments )