summaryrefslogtreecommitdiff
path: root/shell/source
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source')
-rw-r--r--shell/source/tools/lngconvex/lngconvex.cxx7
-rw-r--r--shell/source/unix/sysshell/recently_used_file_handler.cxx7
2 files changed, 4 insertions, 10 deletions
diff --git a/shell/source/tools/lngconvex/lngconvex.cxx b/shell/source/tools/lngconvex/lngconvex.cxx
index 802cafb6a08b..85f36ae8e28e 100644
--- a/shell/source/tools/lngconvex/lngconvex.cxx
+++ b/shell/source/tools/lngconvex/lngconvex.cxx
@@ -470,15 +470,12 @@ void inflate_rc_template_to_file(
{
substitutor.set_language(iso_lang_identifier(iter->first));
- auto rct_iter = rctmpl.cbegin();
- auto rct_iter_end = rctmpl.cend();
-
if (!rctmpl.empty())
start_language_section(oi, iso_lang_identifier(iter->first));
- for ( /**/ ;rct_iter != rct_iter_end; ++rct_iter)
+ for ( auto& rct : rctmpl)
{
- std::istringstream iss(*rct_iter);
+ std::istringstream iss(rct);
std::string line;
while (iss)
diff --git a/shell/source/unix/sysshell/recently_used_file_handler.cxx b/shell/source/unix/sysshell/recently_used_file_handler.cxx
index 49c200eb47b6..0742e8b8912d 100644
--- a/shell/source/unix/sysshell/recently_used_file_handler.cxx
+++ b/shell/source/unix/sysshell/recently_used_file_handler.cxx
@@ -125,11 +125,8 @@ namespace /* private */ {
{
write_xml_start_tag(TAG_GROUPS, file, true);
- auto iter = groups_.cbegin();
- auto iter_end = groups_.cend();
-
- for ( ; iter != iter_end; ++iter)
- write_xml_tag(TAG_GROUP, (*iter), file);
+ for (auto& group : groups_)
+ write_xml_tag(TAG_GROUP, group, file);
write_xml_end_tag(TAG_GROUPS, file);
}