summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/textuno.hxx4
-rw-r--r--sc/source/ui/unoobj/textuno.cxx1
2 files changed, 4 insertions, 1 deletions
diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx
index 19f9effa4e0d..e531c8ebcb2e 100644
--- a/sc/inc/textuno.hxx
+++ b/sc/inc/textuno.hxx
@@ -35,6 +35,8 @@
#include "rtl/ref.hxx"
#include "scdllapi.h"
+#include <boost/noncopyable.hpp>
+
class EditEngine;
class EditTextObject;
class SvxEditEngineForwarder;
@@ -110,7 +112,7 @@ public:
// ScHeaderFooterTextData: shared data between sub objects of a ScHeaderFooterTextObj
-class ScHeaderFooterTextData
+class ScHeaderFooterTextData : boost::noncopyable
{
private:
EditTextObject* mpTextObj;
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx
index 77ba10fa924b..3976e21760f7 100644
--- a/sc/source/ui/unoobj/textuno.cxx
+++ b/sc/source/ui/unoobj/textuno.cxx
@@ -200,6 +200,7 @@ ScHeaderFooterTextData::~ScHeaderFooterTextData()
delete pForwarder;
delete pEditEngine;
+ delete mpTextObj;
}
SvxTextForwarder* ScHeaderFooterTextData::GetTextForwarder()