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 <sberg...@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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits