diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
| commit | 169dff19d4da8d76e69b8e896aa25b0013639c03 (patch) | |
| tree | a0c070fa95188b5cde708ac285e6a2db9df4a83f /src/file.cpp | |
| parent | Avoid creating a new document before opening an old document. (diff) | |
| download | inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip | |
modernize loops
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 8 |
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()) |
