summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-14 20:44:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-14 20:44:21 +0100
commitf1e5db3e5c5bc4909dd1f1e6e3288e7a8187efdc (patch)
tree7f8962e54edc13e7d17064976cf13a400f487485 /unodevtools
parente0b93ef5712264f78b8876993e718ccaad2c1216 (diff)
Use emplace_back
Change-Id: I006e3c8f411b480917d9cfb9c4f3d082b79c833d
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/skeletonmaker/skeletoncommon.cxx28
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;