[Libreoffice-commits] core.git: include/vcl

Jochen Nitschke j.nitschke+logerrit at ok.de
Sun Jun 25 09:54:31 UTC 2017


 include/vcl/texteng.hxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit e496a707b23d9ab0fb0ac20e7411cf316f2f1412
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sun Jun 25 10:17:38 2017 +0200

    vcl: delete fake copy ctor and assignment operator of TextEngine
    
    Change-Id: I9db651d2d9763aca8c70c1a313bab8d7d4d73e10
    Reviewed-on: https://gerrit.libreoffice.org/39228
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx
index 83e715a73816..3ac8244ab45f 100644
--- a/include/vcl/texteng.hxx
+++ b/include/vcl/texteng.hxx
@@ -137,9 +137,6 @@ private:
     bool                mbRightToLeft       : 1;
     bool                mbHasMultiLineParas : 1;
 
-                        TextEngine( const TextEngine& ) : SfxBroadcaster()  {}
-    TextEngine&         operator=( const TextEngine& )      { return *this; }
-
 protected:
 
     void                CursorMoved( sal_uInt32 nNode );
@@ -222,6 +219,8 @@ protected:
 public:
                         TextEngine();
                         virtual ~TextEngine() override;
+                        TextEngine( const TextEngine& ) = delete;
+    TextEngine&         operator=( const TextEngine& ) = delete;
 
     void                SetText( const OUString& rStr );
     OUString            GetText( LineEnd aSeparator = LINEEND_LF ) const;


More information about the Libreoffice-commits mailing list