summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basic/source/classes/propacc.cxx6
-rw-r--r--basic/source/inc/propacc.hxx5
2 files changed, 6 insertions, 5 deletions
diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx
index dac042e7388f..2a0b49af8eed 100644
--- a/basic/source/classes/propacc.cxx
+++ b/basic/source/classes/propacc.cxx
@@ -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]);
}
}
diff --git a/basic/source/inc/propacc.hxx b/basic/source/inc/propacc.hxx
index 325976ec3fea..ec227a44647b 100644
--- a/basic/source/inc/propacc.hxx
+++ b/basic/source/inc/propacc.hxx
@@ -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;