summaryrefslogtreecommitdiff
path: root/reportdesign/source/core/sdr/UndoEnv.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign/source/core/sdr/UndoEnv.cxx')
-rw-r--r--reportdesign/source/core/sdr/UndoEnv.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/reportdesign/source/core/sdr/UndoEnv.cxx b/reportdesign/source/core/sdr/UndoEnv.cxx
index 0f4a3c374973..a4dc600bffcf 100644
--- a/reportdesign/source/core/sdr/UndoEnv.cxx
+++ b/reportdesign/source/core/sdr/UndoEnv.cxx
@@ -232,9 +232,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
PropertySetInfoCache::iterator objectPos = m_pImpl->m_aPropertySetCache.find(xSet);
if (objectPos == m_pImpl->m_aPropertySetCache.end())
{
- objectPos = m_pImpl->m_aPropertySetCache.insert( PropertySetInfoCache::value_type(
- xSet, ObjectInfo()
- ) ).first;
+ objectPos = m_pImpl->m_aPropertySetCache.emplace( xSet, ObjectInfo() ).first;
DBG_ASSERT(objectPos != m_pImpl->m_aPropertySetCache.end(), "OXUndoEnvironment::propertyChange : just inserted it ... why it's not there ?");
}
if ( objectPos == m_pImpl->m_aPropertySetCache.end() )
@@ -287,10 +285,10 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
|| ( ( nPropertyAttributes & PropertyAttribute::TRANSIENT ) != 0 );
// insert the new entry
- aPropertyPos = rObjectInfo.aProperties.insert( PropertiesInfo::value_type(
+ aPropertyPos = rObjectInfo.aProperties.emplace(
_rEvent.PropertyName,
PropertyInfo( bTransReadOnly )
- ) ).first;
+ ).first;
DBG_ASSERT(aPropertyPos != rObjectInfo.aProperties.end(), "OXUndoEnvironment::propertyChange : just inserted it ... why it's not there ?");
}