summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-12 10:05:54 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-13 08:10:29 +0000
commit0f6725454823a5789f3e1c70dad024c46d3f6fc9 (patch)
tree370646f32cddb69aadf0d9659e90ed8600d43901 /uui
parentf12b17867ef8fa2cfc2ddb7ecda9d7acc57cfa59 (diff)
clang-tidy modernize-loop-convert in toolkit to uui
Change-Id: I805aa1389ef8dde158f0b776d6b59579fa3082e4 Reviewed-on: https://gerrit.libreoffice.org/24921 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl-authentication.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/uui/source/iahndl-authentication.cxx b/uui/source/iahndl-authentication.cxx
index e4d1d6009c03..9855df99d4f7 100644
--- a/uui/source/iahndl-authentication.cxx
+++ b/uui/source/iahndl-authentication.cxx
@@ -449,10 +449,10 @@ executeMasterPasswordDialog(
1000);
OUStringBuffer aBuffer;
- for (int i = 0; i < RTL_DIGEST_LENGTH_MD5; ++i)
+ for (sal_uInt8 i : aKey)
{
- aBuffer.append(static_cast< sal_Unicode >('a' + (aKey[i] >> 4)));
- aBuffer.append(static_cast< sal_Unicode >('a' + (aKey[i] & 15)));
+ aBuffer.append(static_cast< sal_Unicode >('a' + (i >> 4)));
+ aBuffer.append(static_cast< sal_Unicode >('a' + (i & 15)));
}
rInfo.SetPassword(aBuffer.makeStringAndClear());
}