diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-16 16:59:34 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-21 22:29:39 +0200 |
commit | c80833fd0e092dbac42bfb2e3f7dc61a50191695 (patch) | |
tree | 4957575443ea91204bd3e57a3d5c5ac0f6412459 /unoidl | |
parent | eb4cbea657b9038c488f1b1bcf5107cc226a6681 (diff) |
Use sal_uInt16, as required, and use < in for loop condition
Change-Id: Iae44d45d749c6f51be72c0b2d16639c7287c42b2
Diffstat (limited to 'unoidl')
-rw-r--r-- | unoidl/source/legacyprovider.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unoidl/source/legacyprovider.cxx b/unoidl/source/legacyprovider.cxx index 9c0b21d8ab2e..b9ee5e5897c5 100644 --- a/unoidl/source/legacyprovider.cxx +++ b/unoidl/source/legacyprovider.cxx @@ -371,7 +371,7 @@ rtl::Reference< Entity > readEntity( return new Module(manager, ucr, sub); case RT_TYPE_STRUCT: { - sal_uInt32 n = reader.getReferenceCount(); + sal_uInt16 n = reader.getReferenceCount(); if (n == 0) { OUString base; switch (reader.getSuperTypeCount()) { @@ -390,7 +390,7 @@ rtl::Reference< Entity > readEntity( } std::vector< PlainStructTypeEntity::Member > mems; n = reader.getFieldCount(); - for (sal_uInt32 j = 0; j != n; ++j) { + for (sal_uInt16 j = 0; j < n; ++j) { mems.push_back( PlainStructTypeEntity::Member( reader.getFieldName(j), @@ -411,13 +411,13 @@ rtl::Reference< Entity > readEntity( " with key " + sub.getName())); } std::vector< OUString > params; - for (sal_uInt32 j = 0; j != n; ++j) { + for (sal_uInt16 j = 0; j < n; ++j) { params.push_back( reader.getReferenceTypeName(j).replace('/', '.')); } std::vector< PolymorphicStructTypeTemplateEntity::Member > mems; n = reader.getFieldCount(); - for (sal_uInt32 j = 0; j != n; ++j) { + for (sal_uInt16 j = 0; j < n; ++j) { mems.push_back( PolymorphicStructTypeTemplateEntity::Member( reader.getFieldName(j), |