summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:41:30 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:41:30 +0000
commit169dff19d4da8d76e69b8e896aa25b0013639c03 (patch)
treea0c070fa95188b5cde708ac285e6a2db9df4a83f /src/file.cpp
parentAvoid creating a new document before opening an old document. (diff)
downloadinkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz
inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip
modernize loops
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 7cc962d38..9e57c0658 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -539,9 +539,9 @@ sp_file_open_dialog(Gtk::Window &parentWindow, gpointer /*object*/, gpointer /*d
//# Iterate through filenames if more than 1
if (flist.size() > 1)
{
- for (unsigned int i = 0; i < flist.size(); i++)
+ for (const auto & i : flist)
{
- fileName = flist[i];
+ fileName = i;
Glib::ustring newFileName = Glib::filename_to_utf8(fileName);
if ( newFileName.size() > 0 )
@@ -1372,9 +1372,9 @@ sp_file_import(Gtk::Window &parentWindow)
//# Iterate through filenames if more than 1
if (flist.size() > 1)
{
- for (unsigned int i = 0; i < flist.size(); i++)
+ for (const auto & i : flist)
{
- fileName = flist[i];
+ fileName = i;
Glib::ustring newFileName = Glib::filename_to_utf8(fileName);
if (!newFileName.empty())