summaryrefslogtreecommitdiff
path: root/svl/source/undo
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 12:00:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 13:15:40 +0200
commit48b200a0a2aa70a7dfc0aad8a4964690ae11d42e (patch)
treec23ca5f8d827ba2e99783d80fac21073dd242147 /svl/source/undo
parent65b756f6058697ccb787506c3cc32e1e818bcc37 (diff)
clang-tidy modernize-use-emplace in svgio..svtools
Change-Id: I4f3b0762e197d5397e723aba1dc43e3c857be145 Reviewed-on: https://gerrit.libreoffice.org/42193 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/undo')
-rw-r--r--svl/source/undo/undo.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index ce8434180279..087f65986568 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -356,12 +356,12 @@ namespace svl { namespace undo { namespace impl
*/
void scheduleNotification( UndoListenerVoidMethod i_notificationMethod )
{
- m_notifiers.push_back( NotifyUndoListener( i_notificationMethod ) );
+ m_notifiers.emplace_back( i_notificationMethod );
}
void scheduleNotification( UndoListenerStringMethod i_notificationMethod, const OUString& i_actionComment )
{
- m_notifiers.push_back( NotifyUndoListener( i_notificationMethod, i_actionComment ) );
+ m_notifiers.emplace_back( i_notificationMethod, i_actionComment );
}
private: