summaryrefslogtreecommitdiff
path: root/vcl/source/edit/textdoc.hxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-04-07 18:35:00 +0900
committerMichael Stahl <mstahl@redhat.com>2016-04-07 20:43:33 +0000
commitfa94cdc7fae33987b49985405d84a483010421f0 (patch)
tree7b54ddbba021e68109c8ea978b591408693c9aa0 /vcl/source/edit/textdoc.hxx
parent70cc48f17a61296021c035f351c3db68bc5e08ad (diff)
vcl: Make it noncopyable by deleting copy ctor & co
Change-Id: Ia141d1d48d915f1ecc0351e47d7b9700891ebad2 Reviewed-on: https://gerrit.libreoffice.org/23891 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/source/edit/textdoc.hxx')
-rw-r--r--vcl/source/edit/textdoc.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/edit/textdoc.hxx b/vcl/source/edit/textdoc.hxx
index 4e7097c52576..91ff2ac70bf9 100644
--- a/vcl/source/edit/textdoc.hxx
+++ b/vcl/source/edit/textdoc.hxx
@@ -67,7 +67,6 @@ private:
OUString maText;
TextCharAttribList maCharAttribs;
- TextNode( const TextNode& ) {;}
protected:
void ExpandAttribs( sal_Int32 nIndex, sal_Int32 nNewChars );
void CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDelChars );
@@ -75,6 +74,9 @@ protected:
public:
TextNode( const OUString& rText );
+ TextNode( const TextNode& ) = delete;
+ void operator=( const TextNode& ) = delete;
+
const OUString& GetText() const { return maText; }
const TextCharAttrib& GetCharAttrib(sal_uInt16 nPos) const { return maCharAttribs.GetAttrib(nPos); }