summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-09 14:35:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-12 08:36:20 +0200
commitd4eabd5da8ea3b5ac40659c22cde19b26b3c002b (patch)
tree63c93e0287aa5668d8b2147b756d08ced533e7fd /sd
parent089ff7a374df9870c506c36720a1b9cab3a252f6 (diff)
pass comphelper::PropertySetInfo around using rtl::Reference
and remove some manual ref counting Change-Id: Ib78122fbbf914e87e0aef1f8fffe3952639e5b22 Reviewed-on: https://gerrit.libreoffice.org/38607 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/unoidl/UnoDocumentSettings.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx
index 4368ba73d672..da16dd12c53e 100644
--- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx
+++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx
@@ -143,7 +143,7 @@ enum SdDocumentSettingsPropertyHandles
#define MID_PRINTER 1
- PropertySetInfo * createSettingsInfoImpl( bool bIsDraw )
+ rtl::Reference<PropertySetInfo> createSettingsInfoImpl( bool bIsDraw )
{
static PropertyMapEntry const aImpressSettingsInfoMap[] =
{
@@ -204,10 +204,10 @@ enum SdDocumentSettingsPropertyHandles
{ OUString(), 0, css::uno::Type(), 0, 0 }
};
- PropertySetInfo* pInfo = new PropertySetInfo( aCommonSettingsInfoMap );
- pInfo->add( bIsDraw ? aDrawSettingsInfoMap : aImpressSettingsInfoMap );
+ rtl::Reference<PropertySetInfo> xInfo = new PropertySetInfo( aCommonSettingsInfoMap );
+ xInfo->add( bIsDraw ? aDrawSettingsInfoMap : aImpressSettingsInfoMap );
- return pInfo;
+ return xInfo;
}
}