From 6ef69234cf9138000a1dcf483114ea7c792fe3ed Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Tue, 8 Jun 2021 10:16:31 +0200 Subject: Simplify Sequences initializations (comphelper+connectivity) Change-Id: I8a91f4bd2a1117acb571f1058af18071bc058c9d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116815 Tested-by: Jenkins Reviewed-by: Julien Nabet --- comphelper/source/misc/accessiblekeybindinghelper.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/misc/accessiblekeybindinghelper.cxx b/comphelper/source/misc/accessiblekeybindinghelper.cxx index 8028464aff2b..ce1203e42fcd 100644 --- a/comphelper/source/misc/accessiblekeybindinghelper.cxx +++ b/comphelper/source/misc/accessiblekeybindinghelper.cxx @@ -64,10 +64,7 @@ namespace comphelper void OAccessibleKeyBindingHelper::AddKeyBinding( const awt::KeyStroke& rKeyStroke ) { ::osl::MutexGuard aGuard( m_aMutex ); - - Sequence< awt::KeyStroke > aSeq(1); - aSeq[0] = rKeyStroke; - m_aKeyBindings.push_back( aSeq ); + m_aKeyBindings.push_back( { rKeyStroke } ); } -- cgit v1.2.3