From 848b25f0848bbf3d214ac19c9f815b488be9303d Mon Sep 17 00:00:00 2001 From: Tomáš Chvátal Date: Wed, 20 Mar 2019 12:05:39 +0100 Subject: Add few more fixes to build with Boost < 1.56 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifbdbf7f2d44d569c491b1822d9d842433a9978a1 Reviewed-on: https://gerrit.libreoffice.org/69461 Reviewed-by: Tomáš Chvátal Tested-by: Tomáš Chvátal Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/core/crsr/findtxt.cxx | 4 ++++ sw/source/core/inc/txtfrm.hxx | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx index f45516361c2d..03239dfb1063 100644 --- a/sw/source/core/crsr/findtxt.cxx +++ b/sw/source/core/crsr/findtxt.cxx @@ -152,7 +152,11 @@ public: { if (pFrame) { +#if BOOST_VERSION < 105600 + m_oMergedIter.reset(*pFrame); +#else m_oMergedIter.emplace(*pFrame); +#endif } } diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx index 9af04de107a5..bf4c0ad8a316 100644 --- a/sw/source/core/inc/txtfrm.hxx +++ b/sw/source/core/inc/txtfrm.hxx @@ -24,6 +24,8 @@ #include #include "TextFrameIndex.hxx" +#include + namespace com { namespace sun { namespace star { namespace linguistic2 { class XHyphenatedWord; } } } } namespace sw { namespace mark { class IMark; } } @@ -980,8 +982,13 @@ struct MergedPara class MergedAttrIterBase { protected: +#if BOOST_VERSION < 105600 + sw::MergedPara const* m_pMerged; + SwTextNode const* m_pNode; +#else sw::MergedPara const*const m_pMerged; SwTextNode const*const m_pNode; +#endif size_t m_CurrentExtent; size_t m_CurrentHint; MergedAttrIterBase(SwTextFrame const& rFrame); -- cgit v1.2.3