summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-05-14 11:08:45 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-05-14 23:13:59 +0200
commit141f3e101508e7d0a83bd34a5cf48673fe91e44c (patch)
tree85337d03d4981e5e4717e681a587eabd922c6352 /configmgr
parente01786898406130aa81eadc32f7bc2fad65c5344 (diff)
Directly partly initialize vector in access.cxx
Change-Id: Iac19920caf0a9bdfa07b025c19c7659b96374c7e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115590 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/access.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx
index fa2aa1fe6eb0..02e3f557c684 100644
--- a/configmgr/source/access.cxx
+++ b/configmgr/source/access.cxx
@@ -173,19 +173,19 @@ css::uno::Sequence< css::uno::Type > Access::getTypes()
assert(thisIs(IS_ANY));
osl::MutexGuard g(*lock_);
checkLocalizedPropertyAccess();
- std::vector< css::uno::Type > types;
- types.push_back(cppu::UnoType< css::uno::XInterface >::get());
- types.push_back(cppu::UnoType< css::uno::XWeak >::get());
- types.push_back(cppu::UnoType< css::lang::XTypeProvider >::get());
- types.push_back(cppu::UnoType< css::lang::XServiceInfo >::get());
- types.push_back(cppu::UnoType< css::lang::XComponent >::get());
- types.push_back(cppu::UnoType< css::container::XContainer >::get());
- types.push_back(cppu::UnoType< css::beans::XExactName >::get());
- types.push_back(cppu::UnoType< css::container::XHierarchicalName >::get());
- types.push_back(cppu::UnoType< css::container::XNamed >::get());
- types.push_back(cppu::UnoType< css::beans::XProperty >::get());
- types.push_back(cppu::UnoType< css::container::XElementAccess >::get());
- types.push_back(cppu::UnoType< css::container::XNameAccess >::get());
+ std::vector< css::uno::Type > types { cppu::UnoType< css::uno::XInterface >::get(),
+ cppu::UnoType< css::uno::XWeak >::get(),
+ cppu::UnoType< css::lang::XTypeProvider >::get(),
+ cppu::UnoType< css::lang::XServiceInfo >::get(),
+ cppu::UnoType< css::lang::XComponent >::get(),
+ cppu::UnoType< css::container::XContainer >::get(),
+ cppu::UnoType< css::beans::XExactName >::get(),
+ cppu::UnoType< css::container::XHierarchicalName >::get(),
+ cppu::UnoType< css::container::XNamed >::get(),
+ cppu::UnoType< css::beans::XProperty >::get(),
+ cppu::UnoType< css::container::XElementAccess >::get(),
+ cppu::UnoType< css::container::XNameAccess >::get()
+ };
if (getNode()->kind() == Node::KIND_GROUP) {
types.push_back(cppu::UnoType< css::beans::XPropertySetInfo >::get());
types.push_back(cppu::UnoType< css::beans::XPropertySet >::get());