[Libreoffice-commits] core.git: editeng/source include/editeng

Stephan Bergmann sbergman at redhat.com
Fri Dec 5 00:58:47 PST 2014


 editeng/source/outliner/outlin2.cxx |    5 +++++
 include/editeng/outliner.hxx        |    2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 4ac083b0c905e4b7b854940c796e387399d58026
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Dec 5 09:58:23 2014 +0100

    loplugin:cstylecast, involving pointer to incomplete type
    
    Change-Id: Ibe4613e2fd77eec8e6e6d1c5e880b596e103a7b8

diff --git a/editeng/source/outliner/outlin2.cxx b/editeng/source/outliner/outlin2.cxx
index 168f103..3fc587e 100644
--- a/editeng/source/outliner/outlin2.cxx
+++ b/editeng/source/outliner/outlin2.cxx
@@ -522,6 +522,11 @@ bool Outliner::ShouldCreateBigTextObject() const
     return pEditEngine->ShouldCreateBigTextObject();
 }
 
+const EditEngine& Outliner::GetEditEngine() const
+{
+    return *pEditEngine;
+}
+
 void Outliner::SetVertical( bool b )
 {
     pEditEngine->SetVertical( b );
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index 932cc9f..7e250c4 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -960,7 +960,7 @@ public:
 
     bool            ShouldCreateBigTextObject() const;
 
-    const EditEngine& GetEditEngine() const { return *((EditEngine*)pEditEngine); }
+    const EditEngine& GetEditEngine() const;
 
     // this is needed for StarOffice Api
     void SetLevelDependendStyleSheet( sal_Int32 nPara );


More information about the Libreoffice-commits mailing list