Kaydet (Commit) 2f467535 authored tarafından Michael Stahl's avatar Michael Stahl

svtools: replace boost::ptr_vector with std::vector

Change-Id: I70a2919e43495ce10c0c90ec91a25604d82e7d28
üst cef74993
......@@ -23,7 +23,7 @@
#include <svtools/svtdllapi.h>
#include <svtools/svparser.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
#include <vector>
namespace com { namespace sun { namespace star {
namespace document {
......@@ -118,7 +118,7 @@ public:
//SvxAdjust GetAdjust() const; // <P,TH,TD ALIGN=>
};
typedef ::boost::ptr_vector<HTMLOption> HTMLOptions;
typedef ::std::vector<HTMLOption> HTMLOptions;
class SVT_DLLPUBLIC HTMLParser : public SvParser
{
......
......@@ -282,7 +282,6 @@
#include <memory>
#include <numeric>
#include <o3tl/numeric.hxx>
#include <o3tl/ptr_container.hxx>
#include <officecfg/Office/Common.hxx>
#include <osl/conditn.hxx>
#include <osl/diagnose.h>
......
......@@ -20,7 +20,6 @@
#include <ctype.h>
#include <comphelper/string.hxx>
#include <o3tl/ptr_container.hxx>
#include <tools/stream.hxx>
#include <tools/debug.hxx>
#include <tools/color.hxx>
......@@ -1577,10 +1576,9 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
}
// Token is known and can be saved
std::unique_ptr<HTMLOption> pOption(
new HTMLOption(sal::static_int_cast<sal_uInt16>(nToken), sName, aValue));
maOptions.push_back(
HTMLOption(sal::static_int_cast<sal_uInt16>(nToken), sName, aValue));
o3tl::ptr_container::push_back(maOptions, std::move(pOption));
}
else
// Ignore white space and unexpected characters
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment