[Libreoffice-commits] core.git: sd/source
Stephan Bergmann
sbergman at redhat.com
Fri Jun 29 19:07:07 UTC 2018
sd/source/core/stlsheet.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9402ef2c1dbf207eaee0d4014f37f586aec2f6f8
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Jun 29 15:54:50 2018 +0200
Improved loplugin:redundantcast (const-qualified typedefs): sd
Change-Id: I043576ca1fa83180b326f65b05f6bc5c21814e82
Reviewed-on: https://gerrit.libreoffice.org/56701
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 1b517483b7c6..9c90d3cc67d6 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -1224,7 +1224,7 @@ PropertyState SAL_CALL SdStyleSheet::getPropertyState( const OUString& PropertyN
case XATTR_LINESTART:
case XATTR_LINEDASH:
{
- const NameOrIndex* pItem = rStyleSet.GetItem<NameOrIndex>(static_cast<sal_uInt16>(pEntry->nWID));
+ const NameOrIndex* pItem = rStyleSet.GetItem<NameOrIndex>(pEntry->nWID);
if( ( pItem == nullptr ) || pItem->GetName().isEmpty() )
eState = PropertyState_DEFAULT_VALUE;
}
More information about the Libreoffice-commits
mailing list