diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-17 11:30:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-17 14:12:07 +0100 |
commit | ddc280920282ff3e2801e9a79f9dfa8a6c6f5699 (patch) | |
tree | 4b477c76374f2f36659ba674c2e5d6796629d45b /sw/inc/IMark.hxx | |
parent | 63e7b7afa75252298606c84e8ec82adaee5fa28a (diff) |
boost->std
Change-Id: Idfbcfa1e5ba7bff92e98693c33c4b33a6beda08f
Diffstat (limited to 'sw/inc/IMark.hxx')
-rw-r--r-- | sw/inc/IMark.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sw/inc/IMark.hxx b/sw/inc/IMark.hxx index 56850f8601c8..b72ec6c365ea 100644 --- a/sw/inc/IMark.hxx +++ b/sw/inc/IMark.hxx @@ -23,8 +23,8 @@ #include <calbck.hxx> #include <pam.hxx> #include <boost/operators.hpp> -#include <boost/shared_ptr.hpp> #include <map> +#include <memory> #include <swdllapi.h> struct SwPosition; @@ -133,18 +133,18 @@ namespace sw { namespace mark struct CompareIMarkStartsAfter { bool operator()(SwPosition const& rPos, - boost::shared_ptr<sw::mark::IMark> const& pMark) + std::shared_ptr<sw::mark::IMark> const& pMark) { return pMark->StartsAfter(rPos); } #ifdef DBG_UTIL - bool operator()(boost::shared_ptr<sw::mark::IMark> const& pMark, + bool operator()(std::shared_ptr<sw::mark::IMark> const& pMark, SwPosition const& rPos) { return pMark->StartsBefore(rPos); } - bool operator()(boost::shared_ptr<sw::mark::IMark> const& pMark1, - boost::shared_ptr<sw::mark::IMark> const& pMark2) + bool operator()(std::shared_ptr<sw::mark::IMark> const& pMark1, + std::shared_ptr<sw::mark::IMark> const& pMark2) { return (*pMark1) < (*pMark2); } @@ -155,19 +155,19 @@ namespace sw { namespace mark // so it needs 3 overloads... struct CompareIMarkStartsBefore { - bool operator()(boost::shared_ptr<sw::mark::IMark> const& pMark, + bool operator()(std::shared_ptr<sw::mark::IMark> const& pMark, SwPosition const& rPos) { return pMark->StartsBefore(rPos); } #ifdef DBG_UTIL bool operator()(SwPosition const& rPos, - boost::shared_ptr<sw::mark::IMark> const& pMark) + std::shared_ptr<sw::mark::IMark> const& pMark) { return pMark->StartsAfter(rPos); } - bool operator()(boost::shared_ptr<sw::mark::IMark> const& pMark1, - boost::shared_ptr<sw::mark::IMark> const& pMark2) + bool operator()(std::shared_ptr<sw::mark::IMark> const& pMark1, + std::shared_ptr<sw::mark::IMark> const& pMark2) { return (*pMark1) < (*pMark2); } |