From 66576fc1f6cf34d658993fa5f92020bc29fe3f88 Mon Sep 17 00:00:00 2001 From: Mark Page Date: Fri, 1 Jul 2016 12:37:24 +0100 Subject: SfxModule to use initializer_list instead of variadic arguments The compiler can perform type checking with initializer lists Change-Id: I1d26b56a3a2b67fe719f33d758ca9b0c95ebd4d1 Reviewed-on: https://gerrit.libreoffice.org/26852 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/app/swmodule.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/uibase/app/swmodule.cxx b/sw/source/uibase/app/swmodule.cxx index c4bfa356ccb5..f436e09070e3 100644 --- a/sw/source/uibase/app/swmodule.cxx +++ b/sw/source/uibase/app/swmodule.cxx @@ -141,8 +141,7 @@ using namespace ::com::sun::star::uno; SwModule::SwModule( SfxObjectFactory* pWebFact, SfxObjectFactory* pFact, SfxObjectFactory* pGlobalFact ) - : SfxModule( ResMgr::CreateResMgr( "sw" ), pWebFact, - pFact, pGlobalFact, nullptr ), + : SfxModule( ResMgr::CreateResMgr( "sw" ), {pWebFact, pFact, pGlobalFact} ), m_pModuleConfig(nullptr), m_pUsrPref(nullptr), m_pWebUsrPref(nullptr), -- cgit