diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-05 09:58:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-05 09:58:23 +0100 |
commit | 4ac083b0c905e4b7b854940c796e387399d58026 (patch) | |
tree | e0b571d4496728d132be4c40eaa12d90ba6392c9 | |
parent | e2e94f1a1241481941548fa94f32bf63e162967b (diff) |
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: Ibe4613e2fd77eec8e6e6d1c5e880b596e103a7b8
-rw-r--r-- | editeng/source/outliner/outlin2.cxx | 5 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/editeng/source/outliner/outlin2.cxx b/editeng/source/outliner/outlin2.cxx index 168f103eac4a..3fc587e35fb3 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 932cc9f19a8b..7e250c4670f1 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 ); |