From dead6b3a944d0100ef833bb5d7f92bcd2563ada4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:14:44 +0100 Subject: More loplugin:cstylecast: svl auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I71e3b2c9b4c68183288f43999d242e95ae13584d --- svl/source/crypto/cryptosign.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'svl/source/crypto/cryptosign.cxx') diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx index d363542bae57..e4c9337c2a6a 100644 --- a/svl/source/crypto/cryptosign.cxx +++ b/svl/source/crypto/cryptosign.cxx @@ -456,10 +456,10 @@ bad_data: goto bad_data; tmp = num_bytes; rp = result + result_bytes - 1; - rp[tmp] = (PRUint8)(decimal & 0x7f); + rp[tmp] = static_cast(decimal & 0x7f); decimal >>= 7; while (--tmp > 0) { - rp[tmp] = (PRUint8)(decimal | 0x80); + rp[tmp] = static_cast(decimal | 0x80); decimal >>= 7; } result_bytes += num_bytes; @@ -1831,11 +1831,11 @@ bad_data: goto bad_data; tmp = num_bytes; rp = result + result_bytes - 1; - rp[tmp] = (PRUint8)(decimal & 0x7f); + rp[tmp] = static_cast(decimal & 0x7f); decimal >>= 7; while (--tmp > 0) { - rp[tmp] = (PRUint8)(decimal | 0x80); + rp[tmp] = static_cast(decimal | 0x80); decimal >>= 7; } result_bytes += num_bytes; @@ -2097,15 +2097,15 @@ bool Signing::Verify(const std::vector& aData, if (rInformation.ouDateTime.isEmpty()) { OUStringBuffer rBuffer; - rBuffer.append((sal_Int32) aDateTime.GetYear()); + rBuffer.append(static_cast(aDateTime.GetYear())); rBuffer.append('-'); if (aDateTime.GetMonth() < 10) rBuffer.append('0'); - rBuffer.append((sal_Int32) aDateTime.GetMonth()); + rBuffer.append(static_cast(aDateTime.GetMonth())); rBuffer.append('-'); if (aDateTime.GetDay() < 10) rBuffer.append('0'); - rBuffer.append((sal_Int32) aDateTime.GetDay()); + rBuffer.append(static_cast(aDateTime.GetDay())); rInformation.ouDateTime = rBuffer.makeStringAndClear(); } } -- cgit