diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-10-26 09:06:51 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-10-26 11:21:04 +0000 |
commit | 36c4fd5c3310029e00cb6479962623f5fd2d8cd6 (patch) | |
tree | 62022bf1304c846c5ff7e5018ff07c332f11f993 | |
parent | 1276e95193a714391c78120aadb0d347432eb35f (diff) |
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 <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r-- | include/svl/grabbagitem.hxx | 1 | ||||
-rw-r--r-- | starmath/source/wordexportbase.cxx | 4 | ||||
-rw-r--r-- | svl/source/items/grabbagitem.cxx | 15 |
3 files changed, 3 insertions, 17 deletions
diff --git a/include/svl/grabbagitem.hxx b/include/svl/grabbagitem.hxx index 38c49b8b8193..ca49a27c6835 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 ea38df853755..61c1d973fbf4 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 30f583e3f045..082c42207d9f 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 { |