diff options
Diffstat (limited to 'unodevtools')
-rw-r--r-- | unodevtools/source/skeletonmaker/skeletoncommon.cxx | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/unodevtools/source/skeletonmaker/skeletoncommon.cxx b/unodevtools/source/skeletonmaker/skeletoncommon.cxx index 65997afc976a..8bf54f664627 100644 --- a/unodevtools/source/skeletonmaker/skeletoncommon.cxx +++ b/unodevtools/source/skeletonmaker/skeletoncommon.cxx @@ -132,21 +132,19 @@ void checkAttributes(rtl::Reference< TypeManager > const & manager, i != ent2->getDirectAttributes().end(); ++i) { if (!containsAttribute(attributes, i->name)) { - attributes.push_back( - unoidl::AccumulationBasedServiceEntity::Property( - i->name, - i->type, - (unoidl::AccumulationBasedServiceEntity::Property:: - Attributes( - ((i->bound - ? (unoidl::AccumulationBasedServiceEntity:: - Property::ATTRIBUTE_BOUND) - : 0) - | (i->readOnly - ? (unoidl::AccumulationBasedServiceEntity:: - Property::ATTRIBUTE_READ_ONLY) - : 0)))), - std::vector< OUString >())); + attributes.emplace_back( + i->name, i->type, + (unoidl::AccumulationBasedServiceEntity::Property:: + Attributes( + ((i->bound + ? (unoidl::AccumulationBasedServiceEntity:: + Property::ATTRIBUTE_BOUND) + : 0) + | (i->readOnly + ? (unoidl::AccumulationBasedServiceEntity:: + Property::ATTRIBUTE_READ_ONLY) + : 0)))), + std::vector< OUString >()); } } break; |