diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-19 15:59:45 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-19 18:53:08 -0400 |
commit | 4327d4973b572ed749803007d90574919da31f04 (patch) | |
tree | cbed25aad33eb3060438096aa8fadd586165ecb7 | |
parent | 81a1386656622ddb7c453e473f559103ea1f9fd9 (diff) |
Revert "Use boost::scoped_ptr for this."
This reverts commit a4bc804627b8b21506e9b86fa54d2f7d2525e43e.
-rw-r--r-- | editeng/source/editeng/eertfpar.hxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/editeng/source/editeng/eertfpar.hxx b/editeng/source/editeng/eertfpar.hxx index 5b690745985d..df27f204b64e 100644 --- a/editeng/source/editeng/eertfpar.hxx +++ b/editeng/source/editeng/eertfpar.hxx @@ -120,6 +120,10 @@ public: EditPaM GetCurPaM() const { return aCurSel.Max(); } }; +SV_DECL_REF( EditRTFParser ) +SV_IMPL_REF( EditRTFParser ); + + #endif //_EERTFPAR_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index b142a98c0adc..7316d7ef6598 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -86,7 +86,6 @@ #include <editeng/edtdlg.hxx> #include <vector> -#include <boost/scoped_ptr.hpp> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -179,7 +178,7 @@ EditPaM ImpEditEngine::ReadRTF( SvStream& rInput, EditSelection aSel ) DBG_ASSERT(pPool && pPool->GetName().equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("EditEngineItemPool")), "ReadRTF: no EditEnginePool!"); - boost::scoped_ptr<EditRTFParser> xPrsr(new EditRTFParser(rInput, aSel, *pPool, pEditEngine)); + EditRTFParserRef xPrsr = new EditRTFParser(rInput, aSel, *pPool, pEditEngine); SvParserState eState = xPrsr->CallParser(); if ( ( eState != SVPAR_ACCEPTED ) && ( !rInput.GetError() ) ) { |