summaryrefslogtreecommitdiff
path: root/svl/source/crypto/cryptosign.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:14:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:14:44 +0100
commitdead6b3a944d0100ef833bb5d7f92bcd2563ada4 (patch)
tree3353ff138015cf48c38db8abaa9bc3478271b2cd /svl/source/crypto/cryptosign.cxx
parent43b137e1404acbd16649813e9d493ba97b8f509c (diff)
More loplugin:cstylecast: svl
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I71e3b2c9b4c68183288f43999d242e95ae13584d
Diffstat (limited to 'svl/source/crypto/cryptosign.cxx')
-rw-r--r--svl/source/crypto/cryptosign.cxx14
1 files changed, 7 insertions, 7 deletions
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<PRUint8>(decimal & 0x7f);
decimal >>= 7;
while (--tmp > 0) {
- rp[tmp] = (PRUint8)(decimal | 0x80);
+ rp[tmp] = static_cast<PRUint8>(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<PRUint8>(decimal & 0x7f);
decimal >>= 7;
while (--tmp > 0)
{
- rp[tmp] = (PRUint8)(decimal | 0x80);
+ rp[tmp] = static_cast<PRUint8>(decimal | 0x80);
decimal >>= 7;
}
result_bytes += num_bytes;
@@ -2097,15 +2097,15 @@ bool Signing::Verify(const std::vector<unsigned char>& aData,
if (rInformation.ouDateTime.isEmpty())
{
OUStringBuffer rBuffer;
- rBuffer.append((sal_Int32) aDateTime.GetYear());
+ rBuffer.append(static_cast<sal_Int32>(aDateTime.GetYear()));
rBuffer.append('-');
if (aDateTime.GetMonth() < 10)
rBuffer.append('0');
- rBuffer.append((sal_Int32) aDateTime.GetMonth());
+ rBuffer.append(static_cast<sal_Int32>(aDateTime.GetMonth()));
rBuffer.append('-');
if (aDateTime.GetDay() < 10)
rBuffer.append('0');
- rBuffer.append((sal_Int32) aDateTime.GetDay());
+ rBuffer.append(static_cast<sal_Int32>(aDateTime.GetDay()));
rInformation.ouDateTime = rBuffer.makeStringAndClear();
}
}