From b6819a53c0b56a47d6ac7c6eb5aa7d82ca49136c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Sep 2017 08:14:36 +0200 Subject: clang-tidy modernize-use-emplace in sc Change-Id: Ifc38e1fc188fe957a0c717aec19cdd6637e4c658 Reviewed-on: https://gerrit.libreoffice.org/42183 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/undo/undostyl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/source/ui/undo') diff --git a/sc/source/ui/undo/undostyl.cxx b/sc/source/ui/undo/undostyl.cxx index eabbfd08e823..066648d6d70e 100644 --- a/sc/source/ui/undo/undostyl.cxx +++ b/sc/source/ui/undo/undostyl.cxx @@ -227,7 +227,7 @@ ScUndoApplyPageStyle::~ScUndoApplyPageStyle() void ScUndoApplyPageStyle::AddSheetAction( SCTAB nTab, const OUString& rOldStyle ) { - maEntries.push_back( ApplyStyleEntry( nTab, rOldStyle ) ); + maEntries.emplace_back( nTab, rOldStyle ); } OUString ScUndoApplyPageStyle::GetComment() const -- cgit