summaryrefslogtreecommitdiff
path: root/plugingui/directory.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-10-28 22:15:13 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-10-28 22:15:13 +0100
commitca82069f0f522c9ef895fb856217ad5c58ae8089 (patch)
treea4f7d9de557ee5357c8855a9d68886ff687eb214 /plugingui/directory.cc
parenta05a3174d05f4f0021ab76fd8ec01d585904159f (diff)
Deploy range based for loops.
Diffstat (limited to 'plugingui/directory.cc')
-rw-r--r--plugingui/directory.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/directory.cc b/plugingui/directory.cc
index 8249a82..80eef3f 100644
--- a/plugingui/directory.cc
+++ b/plugingui/directory.cc
@@ -254,14 +254,14 @@ Directory::EntryList Directory::listFiles(std::string path, unsigned char filter
}
- for(auto it = directories.begin(); it != directories.end(); ++it)
+ for(auto directory : directories)
{
- entries.push_back(*it);
+ entries.push_back(directory);
}
- for(auto it = files.begin(); it != files.end(); ++it)
+ for(auto file : files)
{
- entries.push_back(*it);
+ entries.push_back(file);
}