diff options
Diffstat (limited to 'cppuhelper/source/propertysetmixin.cxx')
-rw-r--r-- | cppuhelper/source/propertysetmixin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cppuhelper/source/propertysetmixin.cxx b/cppuhelper/source/propertysetmixin.cxx index 111da6478601..32ede83068c0 100644 --- a/cppuhelper/source/propertysetmixin.cxx +++ b/cppuhelper/source/propertysetmixin.cxx @@ -242,8 +242,7 @@ void Data::initProperties( "interface type has too many attributes"); } rtl::OUString name(members[i]->getMemberName()); - if (!properties.insert( - PropertyMap::value_type( + if (!properties.emplace( name, PropertyData( css::beans::Property( @@ -252,7 +251,7 @@ void Data::initProperties( t->getTypeClass(), t->getName()), attrAttribs), (std::find(absentBegin, absentEnd, name) - == absentEnd)))). + == absentEnd))). second) { throw css::uno::RuntimeException( |