mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-29 00:47:32 -04:00
Improve code style.
This commit is contained in:
parent
4e5e5c71ca
commit
2e011d5362
29 changed files with 95 additions and 89 deletions
|
@ -53,7 +53,7 @@ QByteArray KeePass2RandomStream::process(const QByteArray& data)
|
|||
QByteArray result;
|
||||
result.resize(data.size());
|
||||
|
||||
for (int i=0; i<data.size(); i++) {
|
||||
for (int i = 0; i < data.size(); i++) {
|
||||
result[i] = data[i] ^ randomData[i];
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ void KeePass2RandomStream::processInPlace(QByteArray& data)
|
|||
{
|
||||
QByteArray randomData = randomBytes(data.size());
|
||||
|
||||
for (int i=0; i<data.size(); i++) {
|
||||
for (int i = 0; i < data.size(); i++) {
|
||||
data[i] = data[i] ^ randomData[i];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue