diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-02 15:23:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-06 07:52:55 +0200 |
commit | 0745982dc53cce65e63bd05a757aec8e96bcd564 (patch) | |
tree | 54a76476f85c93b2421a0e9fa22135f207784580 /svx | |
parent | 0096426086e52b962ba53aed2132c2f4d0942aed (diff) |
loplugin: cstylecast
Change-Id: I88a106081b7413bff6313d1e07f53e39d8350002
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/items/customshapeitem.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/svx/source/items/customshapeitem.cxx b/svx/source/items/customshapeitem.cxx index b5bc7a9d56fb..f926636cc952 100644 --- a/svx/source/items/customshapeitem.cxx +++ b/svx/source/items/customshapeitem.cxx @@ -68,6 +68,15 @@ com::sun::star::uno::Any* SdrCustomShapeGeometryItem::GetPropertyValueByName( co return pRet; } +const com::sun::star::uno::Any* SdrCustomShapeGeometryItem::GetPropertyValueByName( const OUString& rPropName ) const +{ + const com::sun::star::uno::Any* pRet = NULL; + PropertyHashMap::const_iterator aHashIter( aPropHashMap.find( rPropName ) ); + if ( aHashIter != aPropHashMap.end() ) + pRet = &aPropSeq[ (*aHashIter).second ].Value; + return pRet; +} + com::sun::star::uno::Any* SdrCustomShapeGeometryItem::GetPropertyValueByName( const OUString& rSequenceName, const OUString& rPropName ) { com::sun::star::uno::Any* pRet = NULL; |