summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/propacc.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx
index fa6a6422d6fa..b43f8e78f874 100644
--- a/basic/source/classes/propacc.cxx
+++ b/basic/source/classes/propacc.cxx
@@ -25,6 +25,7 @@
#include <sbunoobj.hxx>
#include <comphelper/propertysetinfo.hxx>
+#include <comphelper/sequence.hxx>
#include <algorithm>
#include <limits.h>
@@ -164,10 +165,7 @@ void SbPropertyValues::removeVetoableChangeListener(
Sequence< PropertyValue > SbPropertyValues::getPropertyValues() throw (css::uno::RuntimeException, std::exception)
{
- Sequence<PropertyValue> aRet( m_aPropVals.size() );
- for (size_t n = 0; n < m_aPropVals.size(); ++n)
- aRet.getArray()[n] = m_aPropVals[n];
- return aRet;
+ return comphelper::containerToSequence(m_aPropVals);
}