Kaydet (Commit) 0e4ea2d0 authored tarafından Tomáš Chvátal's avatar Tomáš Chvátal Kaydeden (comit) Tomáš Chvátal

Add few more fixes to build with Boost < 1.56

Change-Id: Ifbdbf7f2d44d569c491b1822d9d842433a9978a1
Reviewed-on: https://gerrit.libreoffice.org/69462
Tested-by: Jenkins
Reviewed-by: 's avatarTomáš Chvátal <tchvatal@suse.cz>
üst 2a41c31a
...@@ -151,7 +151,11 @@ public: ...@@ -151,7 +151,11 @@ public:
{ {
if (pFrame) if (pFrame)
{ {
#if BOOST_VERSION < 105600
m_oMergedIter.reset(*pFrame);
#else
m_oMergedIter.emplace(*pFrame); m_oMergedIter.emplace(*pFrame);
#endif
} }
} }
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <ndtxt.hxx> #include <ndtxt.hxx>
#include "TextFrameIndex.hxx" #include "TextFrameIndex.hxx"
#include <boost/version.hpp>
namespace com { namespace sun { namespace star { namespace linguistic2 { class XHyphenatedWord; } } } } namespace com { namespace sun { namespace star { namespace linguistic2 { class XHyphenatedWord; } } } }
namespace sw { namespace mark { class IMark; } } namespace sw { namespace mark { class IMark; } }
...@@ -978,8 +980,13 @@ struct MergedPara ...@@ -978,8 +980,13 @@ struct MergedPara
class MergedAttrIterBase class MergedAttrIterBase
{ {
protected: protected:
#if BOOST_VERSION < 105600
sw::MergedPara const* m_pMerged;
SwTextNode const* m_pNode;
#else
sw::MergedPara const*const m_pMerged; sw::MergedPara const*const m_pMerged;
SwTextNode const*const m_pNode; SwTextNode const*const m_pNode;
#endif
size_t m_CurrentExtent; size_t m_CurrentExtent;
size_t m_CurrentHint; size_t m_CurrentHint;
MergedAttrIterBase(SwTextFrame const& rFrame); MergedAttrIterBase(SwTextFrame const& rFrame);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment