summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-05-30 12:24:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-05-30 16:00:35 +0200
commita6856795267509aaf0b4f59a9fb3a626411d1cb6 (patch)
tree1aec9b53493454e37b371ec9a5fa6b82be6016f5 /comphelper
parent5b676a480a68f2ad7ceb107147a2ab3363b4d22d (diff)
cid#1504574 Resource leak
make an owner for the PropertyMapEntries Change-Id: Ie915a8a312f2b24488566814ad67fdeef89b5941 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135123 Tested-by: Jenkins Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/property/propertysetinfo.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/comphelper/source/property/propertysetinfo.cxx b/comphelper/source/property/propertysetinfo.cxx
index 6385965c0d56..206129c5f595 100644
--- a/comphelper/source/property/propertysetinfo.cxx
+++ b/comphelper/source/property/propertysetinfo.cxx
@@ -47,26 +47,6 @@ PropertySetInfo::PropertySetInfo( o3tl::span<const PropertyMapEntry> pMap ) noex
}
}
-PropertySetInfo::PropertySetInfo(uno::Sequence<beans::Property> const& rProps) noexcept
-{
- PropertyMapEntry * pEntries(new PropertyMapEntry[rProps.getLength()]);
- PropertyMapEntry * pEntry(&pEntries[0]);
- for (auto const& it : rProps)
- {
- // check for duplicates
- assert(maPropertyMap.find(it.Name) == maPropertyMap.end());
-
- pEntry->maName = it.Name;
- pEntry->mnHandle = it.Handle;
- pEntry->maType = it.Type;
- pEntry->mnAttributes = it.Attributes;
- pEntry->mnMemberId = 0;
-
- maPropertyMap.emplace(it.Name, pEntry);
- ++pEntry;
- }
-}
-
PropertySetInfo::~PropertySetInfo() noexcept
{
}