From f46a685b27d1504dc050851d244a8a2ef3984ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herbert=20D=C3=BCrr?= Date: Tue, 28 Jan 2014 16:24:44 +0000 Subject: [PATCH] Resolves: #i123228# ParagraphData symbols shouldn't be required... for outlobj.hxx users Avoid the ParagraphDataVector default constructor in the editeng/outlobj.hxx header. ParagraphData symbols are not DLLPUBLIC so they are not available outside of editeng. When inlining is disabled (e.g. for debugging) this may break the build as observed when building svx in debug mode on Solaris. (cherry picked from commit 2738b2ea2df22759f32b687d08fd6868b425760e) Change-Id: I0a8250fe3d61819217c913949dfa20a902b3e397 --- editeng/source/outliner/outlobj.cxx | 4 ++++ include/editeng/outlobj.hxx | 8 +++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/editeng/source/outliner/outlobj.cxx b/editeng/source/outliner/outlobj.cxx index 32b76de5300f..f1e87edaf6fc 100644 --- a/editeng/source/outliner/outlobj.cxx +++ b/editeng/source/outliner/outlobj.cxx @@ -96,6 +96,10 @@ OutlinerParaObject::OutlinerParaObject(const EditTextObject& rEditTextObject, co { } +OutlinerParaObject::OutlinerParaObject( const EditTextObject& rEditTextObject) +: mpImplOutlinerParaObject( new ImplOutlinerParaObject( rEditTextObject.Clone(), ParagraphDataVector(), true)) +{} + OutlinerParaObject::OutlinerParaObject(const OutlinerParaObject& rCandidate) : mpImplOutlinerParaObject(rCandidate.mpImplOutlinerParaObject) { diff --git a/include/editeng/outlobj.hxx b/include/editeng/outlobj.hxx index 402db4e16a75..23f9a6a39c97 100644 --- a/include/editeng/outlobj.hxx +++ b/include/editeng/outlobj.hxx @@ -42,11 +42,9 @@ private: public: // constructors/destructor - OutlinerParaObject( - const EditTextObject& rEditTextObject, - const ParagraphDataVector& rParagraphDataVector = ParagraphDataVector(), - bool bIsEditDoc = true); - OutlinerParaObject(const OutlinerParaObject& rCandidate); + OutlinerParaObject( const EditTextObject&, const ParagraphDataVector&, bool bIsEditDoc = true); + OutlinerParaObject( const EditTextObject&); + OutlinerParaObject( const OutlinerParaObject&); ~OutlinerParaObject(); // assignment operator