summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-12 09:53:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-12 12:24:28 +0200
commit5dd762ddc1829a86e7b4e23076143bc01d6073ad (patch)
tree90ac69d1bab369bc054ac84ede13ec3c87075642 /sd
parent9bd372218dfea3fb70d503d7532ee2b144ada136 (diff)
hold MetaAction by rtl::Reference
instead of yet another private implementation of manual reference counting Change-Id: Iefb1d2e595e45a2dfdc3be54e1c51b64afeaf9d8 Reviewed-on: https://gerrit.libreoffice.org/52753 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/Library_sdui.mk1
-rw-r--r--sd/source/ui/unoidl/unopage.cxx4
2 files changed, 3 insertions, 2 deletions
diff --git a/sd/Library_sdui.mk b/sd/Library_sdui.mk
index b928144145a2..c2ca40f6ed95 100644
--- a/sd/Library_sdui.mk
+++ b/sd/Library_sdui.mk
@@ -49,6 +49,7 @@ $(eval $(call gb_Library_use_libraries,sdui,\
fwl \
fwe \
sal \
+ salhelper \
sd \
sfx \
sot \
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index e5e48f13d411..4def39c4a18e 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -1112,8 +1112,8 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName )
if (xMetaFile)
{
Size aSize( GetPage()->GetSize() );
- xMetaFile->AddAction( static_cast<MetaAction*>(new MetaFillColorAction( COL_WHITE, true )), 0 );
- xMetaFile->AddAction( static_cast<MetaAction*>(new MetaRectAction( ::tools::Rectangle( Point(), aSize ) )), 1 );
+ xMetaFile->AddAction( new MetaFillColorAction( COL_WHITE, true ), 0 );
+ xMetaFile->AddAction( new MetaRectAction( ::tools::Rectangle( Point(), aSize ) ), 1 );
xMetaFile->SetPrefMapMode(MapMode(MapUnit::Map100thMM));
xMetaFile->SetPrefSize( aSize );