diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-06-29 15:55:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-06-29 23:17:08 +0200 |
commit | 4da29bcc4fd5fb764413055bf240963811e2d01e (patch) | |
tree | 49ad02c9dae2b9f011934c955fdd427e3f2038f8 /svx/source/unodraw/unoshape.cxx | |
parent | 084c55f9ddd5dfd2200a8903f83bd8d533d23b74 (diff) |
Improved loplugin:redundantcast (const-qualified typedefs): svx
Change-Id: Id5a26a8b8c23d76f4d26480bb7f37c447902371c
Reviewed-on: https://gerrit.libreoffice.org/56703
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx/source/unodraw/unoshape.cxx')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 49d40324d252..dfffb6c9babe 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -2054,7 +2054,7 @@ beans::PropertyState SvxShape::_getPropertyState( const OUString& PropertyName ) case XATTR_FILLHATCH: case XATTR_LINEDASH: { - const NameOrIndex* pItem = rSet.GetItem<NameOrIndex>(static_cast<sal_uInt16>(pMap->nWID)); + const NameOrIndex* pItem = rSet.GetItem<NameOrIndex>(pMap->nWID); if( ( pItem == nullptr ) || pItem->GetName().isEmpty() ) eState = beans::PropertyState_DEFAULT_VALUE; } @@ -2069,7 +2069,7 @@ beans::PropertyState SvxShape::_getPropertyState( const OUString& PropertyName ) case XATTR_LINESTART: case XATTR_FILLFLOATTRANSPARENCE: { - const NameOrIndex* pItem = rSet.GetItem<NameOrIndex>(static_cast<sal_uInt16>(pMap->nWID)); + const NameOrIndex* pItem = rSet.GetItem<NameOrIndex>(pMap->nWID); if ( pItem == nullptr ) eState = beans::PropertyState_DEFAULT_VALUE; } |