From 43b137e1404acbd16649813e9d493ba97b8f509c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:14:18 +0100 Subject: More loplugin:cstylecast: svtools auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: Ide9e7c53b554f0a36e2078a8823f5ef6fb5cc8fa --- svtools/source/graphic/grfcache.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'svtools/source/graphic/grfcache.cxx') diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx index cd42a0aa289a..5a420941e187 100644 --- a/svtools/source/graphic/grfcache.cxx +++ b/svtools/source/graphic/grfcache.cxx @@ -125,16 +125,16 @@ OString GraphicID::GetIDString() const aHexStr.setLength(24 + (2 * BITMAP_CHECKSUM_SIZE)); for( nShift = 28; nShift >= 0; nShift -= 4 ) - aHexStr[nIndex++] = aHexData[ ( mnID1 >> (sal_uInt32) nShift ) & 0xf ]; + aHexStr[nIndex++] = aHexData[ ( mnID1 >> static_cast(nShift) ) & 0xf ]; for( nShift = 28; nShift >= 0; nShift -= 4 ) - aHexStr[nIndex++] = aHexData[ ( mnID2 >> (sal_uInt32) nShift ) & 0xf ]; + aHexStr[nIndex++] = aHexData[ ( mnID2 >> static_cast(nShift) ) & 0xf ]; for( nShift = 28; nShift >= 0; nShift -= 4 ) - aHexStr[nIndex++] = aHexData[ ( mnID3 >> (sal_uInt32) nShift ) & 0xf ]; + aHexStr[nIndex++] = aHexData[ ( mnID3 >> static_cast(nShift) ) & 0xf ]; for( nShift = ( 8 * BITMAP_CHECKSUM_SIZE ) - 4; nShift >= 0; nShift -= 4 ) - aHexStr[nIndex++] = aHexData[ ( mnID4 >> (sal_uInt32) nShift ) & 0xf ]; + aHexStr[nIndex++] = aHexData[ ( mnID4 >> static_cast(nShift) ) & 0xf ]; return aHexStr.makeStringAndClear(); } -- cgit