diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-08 10:16:31 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-08 13:27:37 +0200 |
commit | 6ef69234cf9138000a1dcf483114ea7c792fe3ed (patch) | |
tree | febed2238b8ec721cc822ace9b3e45049a8f9bd6 /comphelper | |
parent | de9b6e3deeeffa2405fe890946714c2e439e1583 (diff) |
Simplify Sequences initializations (comphelper+connectivity)
Change-Id: I8a91f4bd2a1117acb571f1058af18071bc058c9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116815
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/accessiblekeybindinghelper.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
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 } ); } |