summaryrefslogtreecommitdiff
path: root/sc/inc/document.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r--sc/inc/document.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index bb7a4f01fa2b..7ff9ed357616 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -1186,14 +1186,14 @@ public:
/** Notes **/
SC_DLLPUBLIC ScPostIt* GetNote(const ScAddress& rPos);
SC_DLLPUBLIC ScPostIt* GetNote(SCCOL nCol, SCROW nRow, SCTAB nTab);
- void SetNote(const ScAddress& rPos, ScPostIt* pNote);
- void SetNote(SCCOL nCol, SCROW nRow, SCTAB nTab, ScPostIt* pNote);
+ void SetNote(const ScAddress& rPos, std::unique_ptr<ScPostIt> pNote);
+ void SetNote(SCCOL nCol, SCROW nRow, SCTAB nTab, std::unique_ptr<ScPostIt> pNote);
SC_DLLPUBLIC bool HasNote(const ScAddress& rPos) const;
bool HasNote(SCCOL nCol, SCROW nRow, SCTAB nTab) const;
SC_DLLPUBLIC bool HasColNotes(SCCOL nCol, SCTAB nTab) const;
SC_DLLPUBLIC bool HasTabNotes(SCTAB nTab) const;
bool HasNotes() const;
- SC_DLLPUBLIC ScPostIt* ReleaseNote(const ScAddress& rPos);
+ SC_DLLPUBLIC std::unique_ptr<ScPostIt> ReleaseNote(const ScAddress& rPos);
SC_DLLPUBLIC ScPostIt* GetOrCreateNote(const ScAddress& rPos);
SC_DLLPUBLIC ScPostIt* CreateNote(const ScAddress& rPos);
size_t GetNoteCount( SCTAB nTab, SCCOL nCol ) const;