Kaydet (Commit) 71f6aab0 authored tarafından Michael Stahl's avatar Michael Stahl

basic: replace boot::ptr_vector with std::vector

Change-Id: I4967ad8345cd74c39edbea1df513978b62996b90
üst 79a7cf54
......@@ -26,6 +26,7 @@
#include <comphelper/propertysetinfo.hxx>
#include <algorithm>
#include <limits.h>
using com::sun::star::uno::Reference;
......@@ -178,14 +179,13 @@ void SbPropertyValues::setPropertyValues(const Sequence< PropertyValue >& rPrope
css::lang::WrappedTargetException,
css::uno::RuntimeException, std::exception)
{
if ( !m_aPropVals.empty() )
if (!m_aPropVals.empty())
throw IllegalArgumentException();
const PropertyValue *pPropVals = rPropertyValues.getConstArray();
for (sal_Int32 n = 0; n < rPropertyValues.getLength(); ++n)
{
PropertyValue *pPropVal = new PropertyValue(pPropVals[n]);
m_aPropVals.push_back( pPropVal );
m_aPropVals.push_back(pPropVals[n]);
}
}
......
......@@ -25,9 +25,10 @@
#include <com/sun/star/beans/XPropertyAccess.hpp>
#include <com/sun/star/beans/XPropertyContainer.hpp>
#include <cppuhelper/implbase.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
typedef ::boost::ptr_vector< css::beans::PropertyValue > SbPropertyValueArr_Impl;
#include <vector>
typedef ::std::vector<css::beans::PropertyValue> SbPropertyValueArr_Impl;
typedef ::cppu::WeakImplHelper< css::beans::XPropertySet,
css::beans::XPropertyAccess > SbPropertyValuesHelper;
......
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