diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-17 14:28:41 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-17 14:30:59 -0500 |
commit | 1fb5ecdd7442247e0ed8154928b66fab0bcbe3ad (patch) | |
tree | b3fb2f85d285f2080a65b0d0526a3f82d7790bec /svx/source/unodraw/unoshap4.cxx | |
parent | 3f390be5a7f3dd0108e2257fa57cfcca6d0859e3 (diff) |
Const correct-ness in one place...
And an avalanche of changes that ensued.
Change-Id: I7f882b621ba5af4cd01b2ac7f482ee3eed24e3d5
Diffstat (limited to 'svx/source/unodraw/unoshap4.cxx')
-rw-r--r-- | svx/source/unodraw/unoshap4.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx index a79ef1103257..3baea7086c44 100644 --- a/svx/source/unodraw/unoshap4.cxx +++ b/svx/source/unodraw/unoshap4.cxx @@ -220,7 +220,7 @@ bool SvxOle2Shape::getPropertyValueImpl( const ::rtl::OUString& rName, const Sfx SdrOle2Obj* pObj = dynamic_cast<SdrOle2Obj*>(mpObj.get()); if( pObj ) { - Graphic* pGraphic = pObj->GetGraphic(); + const Graphic* pGraphic = pObj->GetGraphic(); if( pGraphic ) { sal_Bool bIsWMF = sal_False; @@ -326,7 +326,7 @@ bool SvxOle2Shape::getPropertyValueImpl( const ::rtl::OUString& rName, const Sfx case OWN_ATTR_VALUE_GRAPHIC: { uno::Reference< graphic::XGraphic > xGraphic; - Graphic* pGraphic = static_cast<SdrOle2Obj*>( mpObj.get() )->GetGraphic(); + const Graphic* pGraphic = static_cast<SdrOle2Obj*>( mpObj.get() )->GetGraphic(); if( pGraphic ) xGraphic = pGraphic->GetXGraphic(); rValue <<= xGraphic; @@ -339,7 +339,7 @@ bool SvxOle2Shape::getPropertyValueImpl( const ::rtl::OUString& rName, const Sfx SdrOle2Obj* pOle = dynamic_cast< SdrOle2Obj* >( mpObj.get() ); if( pOle ) { - Graphic* pGraphic = pOle->GetGraphic(); + const Graphic* pGraphic = pOle->GetGraphic(); // if there isn't already a preview graphic set, check if we need to generate // one if model says so |