summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qcryptographichash.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-20 12:19:21 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-21 08:26:38 +0200
commit05685708b78b43713fbfc59ff78160340a38e2d1 (patch)
treeec5ee4bc4fdff1e176cd0698644bc893950054c2 /src/corelib/tools/qcryptographichash.cpp
parent9aba868571e7448ea79229a31d18bfd3e69813f8 (diff)
Whitespace cleanup in corelib/tools
Change-Id: Ibe796c398a8e5488b7203abb07aa54740744f1ab Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qcryptographichash.cpp')
-rw-r--r--src/corelib/tools/qcryptographichash.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp
index 3070ac4b05..47b72038eb 100644
--- a/src/corelib/tools/qcryptographichash.cpp
+++ b/src/corelib/tools/qcryptographichash.cpp
@@ -445,7 +445,7 @@ void QCryptographicHash::addData(const QByteArray &data)
and hashes it. Returns \c true if reading was successful.
\since 5.0
*/
-bool QCryptographicHash::addData(QIODevice* device)
+bool QCryptographicHash::addData(QIODevice *device)
{
if (!device->isReadable())
return false;
@@ -456,8 +456,8 @@ bool QCryptographicHash::addData(QIODevice* device)
char buffer[1024];
int length;
- while ((length = device->read(buffer,sizeof(buffer))) > 0)
- addData(buffer,length);
+ while ((length = device->read(buffer, sizeof(buffer))) > 0)
+ addData(buffer, length);
return device->atEnd();
}
@@ -505,19 +505,19 @@ QByteArray QCryptographicHash::result() const
SHA224Result(&copy, reinterpret_cast<unsigned char *>(d->result.data()));
break;
}
- case Sha256:{
+ case Sha256: {
SHA256Context copy = d->sha256Context;
d->result.resize(SHA256HashSize);
SHA256Result(&copy, reinterpret_cast<unsigned char *>(d->result.data()));
break;
}
- case Sha384:{
+ case Sha384: {
SHA384Context copy = d->sha384Context;
d->result.resize(SHA384HashSize);
SHA384Result(&copy, reinterpret_cast<unsigned char *>(d->result.data()));
break;
}
- case Sha512:{
+ case Sha512: {
SHA512Context copy = d->sha512Context;
d->result.resize(SHA512HashSize);
SHA512Result(&copy, reinterpret_cast<unsigned char *>(d->result.data()));