summaryrefslogtreecommitdiff
path: root/sc/inc/column.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-01-14 14:39:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-16 12:16:49 +0100
commit1bf68dbf53f4b5308e295058226abd6d6fb49c3d (patch)
tree7d291955efb4f58ee047d49fcb5848a2e2bbb7c1 /sc/inc/column.hxx
parent3c93d34caa79c37c41eab1d3212a7ff1cdf53d34 (diff)
pass ScPostIt around by unique_ptr
Change-Id: I99c1f0a5d5c760663f5150b477a936d2f45b874c Reviewed-on: https://gerrit.libreoffice.org/66322 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/column.hxx')
-rw-r--r--sc/inc/column.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index 7e12cf4eda46..d21918648678 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -602,10 +602,10 @@ public:
const ScPostIt* GetCellNote( sc::ColumnBlockConstPosition& rBlockPos, SCROW nRow ) const;
void DeleteCellNotes( sc::ColumnBlockPosition& rBlockPos, SCROW nRow1, SCROW nRow2, bool bForgetCaptionOwnership );
bool HasCellNotes() const;
- void SetCellNote( SCROW nRow, ScPostIt* pNote);
+ void SetCellNote( SCROW nRow, std::unique_ptr<ScPostIt> pNote);
bool IsNotesEmptyBlock(SCROW nStartRow, SCROW nEndRow) const;
- ScPostIt* ReleaseNote( SCROW nRow );
+ std::unique_ptr<ScPostIt> ReleaseNote( SCROW nRow );
size_t GetNoteCount() const;
void CreateAllNoteCaptions();
void ForgetNoteCaptions( SCROW nRow1, SCROW nRow2, bool bPreserveData );