summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-13 10:46:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-13 10:46:16 +0200
commit5389b44827393c80df27e429ba446971a0d7a696 (patch)
tree2a14f1687f17df58ace194eff0d6f88955ec5f0e /svl
parent4ffdb6750fa7d656d249a745f9c6d5ba98353b14 (diff)
Let SfxSetItem ctor take SfxItemSet by unique_ptr
Change-Id: I219dd03477862169cd50eecc14822f6a023f879a
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/sitem.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/svl/source/items/sitem.cxx b/svl/source/items/sitem.cxx
index 0ea270fc9980..fdfbe7870450 100644
--- a/svl/source/items/sitem.cxx
+++ b/svl/source/items/sitem.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <utility>
+
#include <rtl/ustring.hxx>
#include <svl/itemset.hxx>
#include <svl/poolitem.hxx>
@@ -29,11 +33,11 @@ SfxSetItem::SfxSetItem( sal_uInt16 which, const SfxItemSet &rSet) :
}
-SfxSetItem::SfxSetItem( sal_uInt16 which, SfxItemSet *pS) :
+SfxSetItem::SfxSetItem( sal_uInt16 which, std::unique_ptr<SfxItemSet> &&pS) :
SfxPoolItem(which),
- pSet(pS)
+ pSet(std::move(pS))
{
- DBG_ASSERT(pS, "SfxSetItem without set constructed" );
+ DBG_ASSERT(pSet, "SfxSetItem without set constructed" );
}