summaryrefslogtreecommitdiff
path: root/unoidl/source/unoidl-read.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoidl/source/unoidl-read.cxx')
-rw-r--r--unoidl/source/unoidl-read.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx
index 6414fb376a1c..2cd44aceefa5 100644
--- a/unoidl/source/unoidl-read.cxx
+++ b/unoidl/source/unoidl-read.cxx
@@ -204,7 +204,7 @@ void insertTypeDependency(
OUString nucl(decomposeType(type, &rank, &args, &entity));
if (entity) {
insertEntityDependency(manager, iterator, nucl, true);
- for (auto & i: args) {
+ for (const auto & i: args) {
insertTypeDependency(manager, iterator, i);
}
}
@@ -1041,7 +1041,7 @@ SAL_IMPLEMENT_MAIN() {
scanMap(mgr, prov->createRootCursor(), published, "", ents);
std::vector<OUString> sorted(sort(ents));
std::vector<OUString> mods;
- for (auto & i: sorted) {
+ for (const auto & i: sorted) {
writeEntity(ents, mods, i);
}
closeModules(mods, mods.size());