summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-09-24 08:26:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-24 10:50:56 +0200
commite1600348e49e1538459a0374fd97cd3173d4a4b9 (patch)
tree0fce6d86a668841fe2c64b025b4c1f3373866fa4 /sc/inc
parentc183a6eb292b31c7fb24f751630960f2035353c5 (diff)
no need to allocate this SfxItemSet on the heap
Change-Id: If398e3725b691491e51e49eadeb37a7fdaad63db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122554 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/postit.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx
index 7fb61bb6ddd6..ff024e4621ea 100644
--- a/sc/inc/postit.hxx
+++ b/sc/inc/postit.hxx
@@ -20,17 +20,18 @@
#pragma once
#include <rtl/ustring.hxx>
+#include <svl/itemset.hxx>
#include "address.hxx"
#include "scdllapi.h"
#include <memory>
+#include <optional>
class EditTextObject;
class OutlinerParaObject;
class SdrCaptionObj;
class SdrPage;
-class SfxItemSet;
class ScDocument;
namespace tools { class Rectangle; }
struct ScCaptionInitData;
@@ -331,7 +332,7 @@ public:
*/
static ScPostIt* CreateNoteFromObjectData(
ScDocument& rDoc, const ScAddress& rPos,
- std::unique_ptr<SfxItemSet> pItemSet,
+ SfxItemSet&& oItemSet,
const OutlinerParaObject& rOutlinerObj,
const tools::Rectangle& rCaptionRect, bool bShown );