summaryrefslogtreecommitdiff
path: root/svtools/source/uno/statusbarcontroller.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-10 16:43:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-11 12:38:32 +0200
commitd347c2403605c5aa3ddd98fb605366914acab79f (patch)
treee39624030741234c514bccd858e69d6318dfba68 /svtools/source/uno/statusbarcontroller.cxx
parentf0e68d4feaaa43f7450432ad1ebd92c2b572400f (diff)
convert std::map::insert to std::map::emplace
which is considerably less verbose Change-Id: Ifa373e8eb09e39bd6c8d3578641610a6055a187b Reviewed-on: https://gerrit.libreoffice.org/40978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/uno/statusbarcontroller.cxx')
-rw-r--r--svtools/source/uno/statusbarcontroller.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/uno/statusbarcontroller.cxx b/svtools/source/uno/statusbarcontroller.cxx
index fecabd21ad2a..94433e733fbd 100644
--- a/svtools/source/uno/statusbarcontroller.cxx
+++ b/svtools/source/uno/statusbarcontroller.cxx
@@ -162,7 +162,7 @@ void SAL_CALL StatusbarController::initialize( const Sequence< Any >& aArguments
}
if ( !m_aCommandURL.isEmpty() )
- m_aListenerMap.insert( URLToDispatchMap::value_type( m_aCommandURL, Reference< XDispatch >() ));
+ m_aListenerMap.emplace( m_aCommandURL, Reference< XDispatch >() );
}
}
@@ -357,7 +357,7 @@ void StatusbarController::addStatusListener( const OUString& aCommandURL )
if ( !m_bInitialized )
{
// Put into the unordered_map of status listener. Will be activated when initialized is called
- m_aListenerMap.insert( URLToDispatchMap::value_type( aCommandURL, Reference< XDispatch >() ));
+ m_aListenerMap.emplace( aCommandURL, Reference< XDispatch >() );
return;
}
else
@@ -388,7 +388,7 @@ void StatusbarController::addStatusListener( const OUString& aCommandURL )
}
}
else
- m_aListenerMap.insert( URLToDispatchMap::value_type( aCommandURL, xDispatch ));
+ m_aListenerMap.emplace( aCommandURL, xDispatch );
}
}
}