diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-05 19:10:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-05 19:14:52 +0200 |
commit | 91573182c8474297ef893f98bb04e830f3095cc2 (patch) | |
tree | 80ca5db657c11d06e1f4f83b2dc72cf42b8ad3e1 /svx | |
parent | eec640d9a0ab8aa52406b711d66f36c3b8d8d83f (diff) |
Fine to let GetObjectItemPool return just SfxItemPool*
Change-Id: Id461dea979c394add57cbc4b1a50bc1a4c183d1b
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdobj.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index 18cc1bce95f6..39d20d50a3e4 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -614,10 +614,10 @@ SdrItemPool& SdrObject::GetGlobalDrawObjectItemPool() return *mpGlobalItemPool; } -SdrItemPool* SdrObject::GetObjectItemPool() const +SfxItemPool* SdrObject::GetObjectItemPool() const { if(pModel) - return (SdrItemPool*)(&pModel->GetItemPool()); + return &pModel->GetItemPool(); // use a static global default pool return &SdrObject::GetGlobalDrawObjectItemPool(); @@ -2094,7 +2094,7 @@ const SfxPoolItem& SdrObject::GetObjectItem(const sal_uInt16 nWhich) const SfxMapUnit SdrObject::GetObjectMapUnit() const { SfxMapUnit aRetval(SFX_MAPUNIT_100TH_MM); - SdrItemPool* pPool = GetObjectItemPool(); + SfxItemPool* pPool = GetObjectItemPool(); if(pPool) { |