include/svl/grabbagitem.hxx | 1 - starmath/source/wordexportbase.cxx | 4 +--- svl/source/items/grabbagitem.cxx | 15 ++------------- 3 files changed, 3 insertions(+), 17 deletions(-)
New commits: commit 36c4fd5c3310029e00cb6479962623f5fd2d8cd6 Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Wed Oct 26 09:06:51 2016 +0200 svl: the compiler can generate the same SfxGrabBagItem copy ctor itself Change-Id: I54f94e8ec710ca117ecdf33ebe97a0e5f07c59ec Reviewed-on: https://gerrit.libreoffice.org/30283 Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> Tested-by: Jenkins <c...@libreoffice.org> diff --git a/include/svl/grabbagitem.hxx b/include/svl/grabbagitem.hxx index 38c49b8..ca49a27 100644 --- a/include/svl/grabbagitem.hxx +++ b/include/svl/grabbagitem.hxx @@ -25,7 +25,6 @@ public: SfxGrabBagItem(); SfxGrabBagItem(sal_uInt16 nWhich); - SfxGrabBagItem(const SfxGrabBagItem& rItem); virtual ~SfxGrabBagItem() override; const std::map<OUString, css::uno::Any>& GetGrabBag() const diff --git a/starmath/source/wordexportbase.cxx b/starmath/source/wordexportbase.cxx index ea38df8..61c1d97 100644 --- a/starmath/source/wordexportbase.cxx +++ b/starmath/source/wordexportbase.cxx @@ -15,9 +15,7 @@ SmWordExportBase::SmWordExportBase(const SmNode* pIn) { } -SmWordExportBase::~SmWordExportBase() -{ -} +SmWordExportBase::~SmWordExportBase() = default; void SmWordExportBase::HandleNode(const SmNode* pNode, int nLevel) { diff --git a/svl/source/items/grabbagitem.cxx b/svl/source/items/grabbagitem.cxx index 30f583e..082c422 100644 --- a/svl/source/items/grabbagitem.cxx +++ b/svl/source/items/grabbagitem.cxx @@ -17,25 +17,14 @@ using namespace com::sun::star; -SfxGrabBagItem::SfxGrabBagItem() -{ -} +SfxGrabBagItem::SfxGrabBagItem() = default; SfxGrabBagItem::SfxGrabBagItem(sal_uInt16 nWhich) : SfxPoolItem(nWhich) { } -SfxGrabBagItem::SfxGrabBagItem(const SfxGrabBagItem& rItem) : - SfxPoolItem(rItem), - m_aMap(rItem.m_aMap) -{ -} - -SfxGrabBagItem::~SfxGrabBagItem() -{ -} - +SfxGrabBagItem::~SfxGrabBagItem() = default; bool SfxGrabBagItem::operator==(const SfxPoolItem& rItem) const { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits