diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-19 15:59:08 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-19 18:53:08 -0400 |
commit | 81a1386656622ddb7c453e473f559103ea1f9fd9 (patch) | |
tree | c3deef7599ad383a1a5f8956870ed5a7507c0eef /editeng | |
parent | 3fdd8667d8876a6661f1c900116e6d4681f43334 (diff) |
Revert "Let's use boost::scoped_ptr for this."
This reverts commit e1520a9d6a9f9bcfcaa332d54892040fe54776c2.
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/eehtml.hxx | 3 | ||||
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/editeng/source/editeng/eehtml.hxx b/editeng/source/editeng/eehtml.hxx index c74f91e61fdd..71f61c86f713 100644 --- a/editeng/source/editeng/eehtml.hxx +++ b/editeng/source/editeng/eehtml.hxx @@ -92,6 +92,9 @@ public: const EditSelection& GetCurSelection() const { return aCurSel; } }; +SV_DECL_REF( EditHTMLParser ) +SV_IMPL_REF( EditHTMLParser ); + #endif // _EEHTML_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 89dce47a5464..b142a98c0adc 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -194,7 +194,7 @@ EditPaM ImpEditEngine::ReadHTML( SvStream& rInput, const String& rBaseURL, EditS if ( aSel.HasRange() ) aSel = ImpDeleteSelection( aSel ); - boost::scoped_ptr<EditHTMLParser> xPrsr(new EditHTMLParser(rInput, rBaseURL, pHTTPHeaderAttrs)); + EditHTMLParserRef xPrsr = new EditHTMLParser( rInput, rBaseURL, pHTTPHeaderAttrs ); SvParserState eState = xPrsr->CallParser(pEditEngine, aSel.Max()); if ( ( eState != SVPAR_ACCEPTED ) && ( !rInput.GetError() ) ) { |