From f1018190a8f791b7dca195f223b9c987a73a83af Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Tue, 13 Sep 2016 13:48:00 +0200 Subject: tdf#88205 use list ctor for uno::Sequence a11y to canvas Change-Id: Ib719c94c0488b8a48fdb013bc8fbd1a988595d18 Reviewed-on: https://gerrit.libreoffice.org/28866 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- basctl/source/basicide/basicrenderable.cxx | 15 ++++++--------- basctl/source/basicide/baside2b.cxx | 6 ++---- 2 files changed, 8 insertions(+), 13 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/basicrenderable.cxx b/basctl/source/basicide/basicrenderable.cxx index 6983244adfd0..d30171c78a6e 100644 --- a/basctl/source/basicide/basicrenderable.cxx +++ b/basctl/source/basicide/basicrenderable.cxx @@ -48,15 +48,12 @@ Renderable::Renderable (BaseWindow* pWin) // create a choice for the range to print OUString aPrintContentName( "PrintContent" ); - Sequence< OUString > aChoices( 2 ); - Sequence< OUString > aHelpIds( 2 ); - Sequence< OUString > aWidgetIds( 2 ); - aChoices[0] = IDE_RESSTR( RID_STR_PRINTDLG_ALLPAGES ); - aHelpIds[0] = ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0" ; - aChoices[1] = IDE_RESSTR( RID_STR_PRINTDLG_PAGES ); - aHelpIds[1] = ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1" ; - aWidgetIds[0] = "printallpages" ; - aWidgetIds[1] = "printpages" ; + const Sequence aChoices{IDE_RESSTR(RID_STR_PRINTDLG_ALLPAGES), + IDE_RESSTR(RID_STR_PRINTDLG_PAGES)}; + const Sequence aHelpIds{".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0", + ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1"}; + const Sequence aWidgetIds{"printallpages", + "printpages"}; m_aUIProperties[1].Value = setChoiceRadiosControlOpt(aWidgetIds, OUString(), aHelpIds, aPrintContentName, aChoices, 0); diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index b4beb58f36c3..e511f74ad77a 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -239,10 +239,8 @@ EditorWindow::EditorWindow (vcl::Window* pParent, ModulWindow* pModulWindow) : osl::MutexGuard g(mutex_); notifier_ = n; } - Sequence< OUString > s(2); - s[0] = "FontHeight"; - s[1] = "FontName"; - n->addPropertiesChangeListener(s, listener_.get()); + const Sequence aPropertyNames{"FontHeight", "FontName"}; + n->addPropertiesChangeListener(aPropertyNames, listener_.get()); } -- cgit on> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff