[Libreoffice-commits] core.git: include/svl starmath/source svl/source
Miklos Vajna
vmiklos at collabora.co.uk
Wed Oct 26 11:21:25 UTC 2016
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 <vmiklos at 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 <vmiklos at collabora.co.uk>
Tested-by: Jenkins <ci at 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
{
More information about the Libreoffice-commits
mailing list