diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-25 10:14:05 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-25 10:14:05 +0100 |
commit | 0203b6be4bb397165d7c6c354e75409164a0e360 (patch) | |
tree | 27c646d1560613a379c52514e083c565c103c06c /registry | |
parent | 64b68e98d215f98f72fd6493b62517ab9984a8d2 (diff) |
loplugin:loopvartoosmall
Change-Id: I8c2fcdbcfaa8ebf83a80fb99701096982b564ef1
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/regimpl.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index 0065b4984775..aaf9f8f4f164 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -1174,13 +1174,12 @@ static sal_uInt32 checkTypeReaders(RegistryTypeReader& reader1, std::set< OUString >& nameSet) { sal_uInt32 count=0; - sal_uInt16 i; - for (i=0 ; i < reader1.getFieldCount(); i++) + for (sal_uInt32 i=0 ; i < reader1.getFieldCount(); i++) { nameSet.insert(reader1.getFieldName(i)); count++; } - for (i=0 ; i < reader2.getFieldCount(); i++) + for (sal_uInt32 i=0 ; i < reader2.getFieldCount(); i++) { if (nameSet.find(reader2.getFieldName(i)) == nameSet.end()) { |