summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-13 10:02:08 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-15 04:52:52 +0200
commitf8dada570ba03b6761a41a074063f2d306989232 (patch)
tree964e2460408f2deae4353d60c0520a931fcd3ade /sc/inc
parent262079b2df4fb42ab00b93e8d87b364cb38ce7ae (diff)
fix memory leak in note handling
Change-Id: I55a7673aff8e23f59ccb99ea73a102df215ba599
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 0db2a9fc1f69..f9c22866fb9f 100644
--- a/sc/inc/postit.hxx
+++ b/sc/inc/postit.hxx
@@ -266,10 +266,11 @@ private:
typedef std::map<ScAddress2D, ScPostIt*> ScNoteMap;
ScNoteMap maNoteMap;
+ ScNotes(const ScNotes& rNotes);
+ ScNotes operator=(const ScNotes& rNotes);
ScDocument* mpDoc;
public:
ScNotes(ScDocument* pDoc);
- ScNotes(const ScNotes& rNotes);
~ScNotes();
typedef ScNoteMap::iterator iterator;
@@ -306,7 +307,7 @@ public:
void clear();
- ScNotes* clone(ScDocument* pDoc, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bCloneNoteCaption, SCTAB nTab);
+ void clone(ScDocument* pDoc, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bCloneNoteCaption, SCTAB nTab, ScNotes& rTarget);
void CopyFromClip(const ScNotes& maNotes, ScDocument* pDoc, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCsCOL nDx, SCsROW nDy, SCTAB nTab, bool bCloneCaption);
void erase(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bForgetCaption = false);