diff options
author | Michael Stahl <mstahl@redhat.com> | 2011-11-28 17:13:35 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2011-11-28 22:45:59 +0100 |
commit | b1c56d12fe5cf0071c22c6ff80049b5fbe48920a (patch) | |
tree | 9d16761fd302b60f4a7957523dcd34a0e8f0b54a /sw/inc/fmtanchr.hxx | |
parent | c66b52b0b25f437a26069ffaf591a42ab6360180 (diff) |
SwFmtAchor: bit of style cleanup
Diffstat (limited to 'sw/inc/fmtanchr.hxx')
-rw-r--r-- | sw/inc/fmtanchr.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/inc/fmtanchr.hxx b/sw/inc/fmtanchr.hxx index 6595991eda1d..fbceba429795 100644 --- a/sw/inc/fmtanchr.hxx +++ b/sw/inc/fmtanchr.hxx @@ -34,6 +34,9 @@ #include <format.hxx> #include <svl/poolitem.hxx> +#include <boost/scoped_ptr.hpp> + + struct SwPosition; class IntlWrapper; #define IVER_FMTANCHOR_LONGIDX ((sal_uInt16)1) @@ -41,7 +44,7 @@ class IntlWrapper; // FlyAnchors class SW_DLLPUBLIC SwFmtAnchor: public SfxPoolItem { - SwPosition *pCntntAnchor; // 0 for page-bound frames. + ::boost::scoped_ptr<SwPosition> m_pCntntAnchor; // 0 for page-bound frames. // Index for paragraph-bound frames. // Position for character-bound frames. RndStdIds nAnchorId; @@ -72,7 +75,7 @@ public: RndStdIds GetAnchorId() const { return nAnchorId; } sal_uInt16 GetPageNum() const { return nPageNum; } - const SwPosition *GetCntntAnchor() const { return pCntntAnchor; } + const SwPosition *GetCntntAnchor() const { return m_pCntntAnchor.get(); } // #i28701# sal_uInt32 GetOrder() const; |