sw/source/core/undo/unattr.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit c8e2675ebde04ab814fe0bc8f800a502280f4689 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Sep 22 21:48:02 2019 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Sep 23 04:55:20 2019 +0200 Simplify SwUndoResetAttr::SetAttrs using operator= Change-Id: Icb958e4800219ddb4fb8e90d082595e6b14b8ac2 Reviewed-on: https://gerrit.libreoffice.org/79358 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx index 5b93949d2bc5..b880309dfb24 100644 --- a/sw/source/core/undo/unattr.cxx +++ b/sw/source/core/undo/unattr.cxx @@ -648,8 +648,7 @@ void SwUndoResetAttr::RepeatImpl(::sw::RepeatContext & rContext) void SwUndoResetAttr::SetAttrs( const std::set<sal_uInt16> &rAttrs ) { - m_Ids.clear(); - m_Ids.insert( rAttrs.begin(), rAttrs.end() ); + m_Ids = rAttrs; } SwUndoAttr::SwUndoAttr( const SwPaM& rRange, const SfxPoolItem& rAttr, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits