summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-09-13 13:48:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-14 07:23:51 +0000
commitf1018190a8f791b7dca195f223b9c987a73a83af (patch)
tree180d64f8e79de8334d91a0ebb237a2c08066fafd /basctl
parent1e49e33c26950b606714c0dafb26cbcb2aeb3877 (diff)
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 <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basicrenderable.cxx15
-rw-r--r--basctl/source/basicide/baside2b.cxx6
2 files changed, 8 insertions, 13 deletions
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<OUString> aChoices{IDE_RESSTR(RID_STR_PRINTDLG_ALLPAGES),
+ IDE_RESSTR(RID_STR_PRINTDLG_PAGES)};
+ const Sequence<OUString> aHelpIds{".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0",
+ ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1"};
+ const Sequence<OUString> 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<OUString> aPropertyNames{"FontHeight", "FontName"};
+ n->addPropertiesChangeListener(aPropertyNames, listener_.get());
}