diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-12 23:49:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-13 10:15:21 +0100 |
commit | d3f4455c54dc7594bce1f65b4d44910794c9e424 (patch) | |
tree | aeaf8a45e990ffae580dc5001062a9164ec6f290 /sw/source/core/inc/UndoTable.hxx | |
parent | bebbe9724805c58f65331631d55dda325da494fa (diff) |
let's use scoped_ptr to avoid c++0x deprecated warnings
Diffstat (limited to 'sw/source/core/inc/UndoTable.hxx')
-rw-r--r-- | sw/source/core/inc/UndoTable.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/inc/UndoTable.hxx b/sw/source/core/inc/UndoTable.hxx index d3a1a9a98b71..b74b0edea19e 100644 --- a/sw/source/core/inc/UndoTable.hxx +++ b/sw/source/core/inc/UndoTable.hxx @@ -37,6 +37,7 @@ #include <itabenum.hxx> #include "boost/noncopyable.hpp" +#include "boost/scoped_ptr.hpp" class SfxItemSet; @@ -185,8 +186,8 @@ class SwUndoTblNdsChg : public SwUndo, private boost::noncopyable _BoxMove(sal_uLong idx, bool moved=false) : index(idx), hasMoved(moved) {}; bool operator<(const _BoxMove other) const { return index < other.index; }; }; - std::auto_ptr< std::set<_BoxMove> > pNewSttNds; - std::auto_ptr< SwUndoSaveSections > pDelSects; + boost::scoped_ptr< std::set<_BoxMove> > pNewSttNds; + boost::scoped_ptr< SwUndoSaveSections > pDelSects; long nMin, nMax; // for redo of delete column sal_uLong nSttNode, nCurrBox; sal_uInt16 nCount, nRelDiff, nAbsDiff, nSetColType; |