summaryrefslogtreecommitdiff
path: root/ucbhelper/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-19 12:29:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-20 13:00:26 +0200
commit650818bf8387636afce9af3672abb84f29b99ee2 (patch)
tree03cdfecd9f3b621ea4e290360c81ec7187b6339e /ucbhelper/source
parent7d1175c46588c246c455cd7c8874136bf61197fd (diff)
no need to allocate Sequence separately in PropertySetInfo
Change-Id: Ibe558facd380e832faaf450a36249620b98ee786 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119217 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper/source')
-rw-r--r--ucbhelper/source/provider/resultset.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx
index f736bac8a789..3bca0b0349ea 100644
--- a/ucbhelper/source/provider/resultset.cxx
+++ b/ucbhelper/source/provider/resultset.cxx
@@ -90,7 +90,7 @@ class PropertySetInfo :
public lang::XTypeProvider,
public beans::XPropertySetInfo
{
- std::unique_ptr<uno::Sequence< beans::Property >> m_pProps;
+ uno::Sequence< beans::Property > m_aProps;
private:
bool queryProperty(
@@ -1401,14 +1401,14 @@ namespace ucbhelper_impl {
PropertySetInfo::PropertySetInfo(
const PropertyInfo* pProps,
sal_Int32 nProps )
- : m_pProps( new uno::Sequence< beans::Property >( nProps ) )
+ : m_aProps( nProps )
{
if ( !nProps )
return;
const PropertyInfo* pEntry = pProps;
- beans::Property* pProperties = m_pProps->getArray();
+ beans::Property* pProperties = m_aProps.getArray();
for ( sal_Int32 n = 0; n < nProps; ++n )
{
@@ -1462,7 +1462,7 @@ XTYPEPROVIDER_IMPL_2( PropertySetInfo,
// virtual
uno::Sequence< beans::Property > SAL_CALL PropertySetInfo::getProperties()
{
- return *m_pProps;
+ return m_aProps;
}
@@ -1490,8 +1490,8 @@ sal_Bool SAL_CALL PropertySetInfo::hasPropertyByName(
bool PropertySetInfo::queryProperty(
std::u16string_view aName, beans::Property& rProp ) const
{
- sal_Int32 nCount = m_pProps->getLength();
- const beans::Property* pProps = m_pProps->getConstArray();
+ sal_Int32 nCount = m_aProps.getLength();
+ const beans::Property* pProps = m_aProps.getConstArray();
for ( sal_Int32 n = 0; n < nCount; ++n )
{
const beans::Property& rCurr = pProps[ n ];