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>
This commit is contained in:
Miklos Vajna
2016-10-26 09:06:51 +02:00
parent 1276e95193
commit 36c4fd5c33
3 changed files with 3 additions and 17 deletions

View File

@@ -25,7 +25,6 @@ public:
SfxGrabBagItem(); SfxGrabBagItem();
SfxGrabBagItem(sal_uInt16 nWhich); SfxGrabBagItem(sal_uInt16 nWhich);
SfxGrabBagItem(const SfxGrabBagItem& rItem);
virtual ~SfxGrabBagItem() override; virtual ~SfxGrabBagItem() override;
const std::map<OUString, css::uno::Any>& GetGrabBag() const const std::map<OUString, css::uno::Any>& GetGrabBag() const

View File

@@ -15,9 +15,7 @@ SmWordExportBase::SmWordExportBase(const SmNode* pIn)
{ {
} }
SmWordExportBase::~SmWordExportBase() SmWordExportBase::~SmWordExportBase() = default;
{
}
void SmWordExportBase::HandleNode(const SmNode* pNode, int nLevel) void SmWordExportBase::HandleNode(const SmNode* pNode, int nLevel)
{ {

View File

@@ -17,25 +17,14 @@
using namespace com::sun::star; using namespace com::sun::star;
SfxGrabBagItem::SfxGrabBagItem() SfxGrabBagItem::SfxGrabBagItem() = default;
{
}
SfxGrabBagItem::SfxGrabBagItem(sal_uInt16 nWhich) : SfxGrabBagItem::SfxGrabBagItem(sal_uInt16 nWhich) :
SfxPoolItem(nWhich) SfxPoolItem(nWhich)
{ {
} }
SfxGrabBagItem::SfxGrabBagItem(const SfxGrabBagItem& rItem) : SfxGrabBagItem::~SfxGrabBagItem() = default;
SfxPoolItem(rItem),
m_aMap(rItem.m_aMap)
{
}
SfxGrabBagItem::~SfxGrabBagItem()
{
}
bool SfxGrabBagItem::operator==(const SfxPoolItem& rItem) const bool SfxGrabBagItem::operator==(const SfxPoolItem& rItem) const
{ {