diff options
Diffstat (limited to 'src/lib/image_filename_sorter.cc')
| -rw-r--r-- | src/lib/image_filename_sorter.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/image_filename_sorter.cc b/src/lib/image_filename_sorter.cc index ea5f46da6..ab0d298fc 100644 --- a/src/lib/image_filename_sorter.cc +++ b/src/lib/image_filename_sorter.cc @@ -18,22 +18,25 @@ */ + #include "image_filename_sorter.h" #include <dcp/locale_convert.h> #include <boost/filesystem.hpp> #include <boost/optional.hpp> #include <iostream> + using std::list; using std::string; using dcp::locale_convert; using boost::optional; + bool ImageFilenameSorter::operator() (boost::filesystem::path a, boost::filesystem::path b) { - string an = extract_numbers (a); - string bn = extract_numbers (b); + auto an = extract_numbers (a); + auto bn = extract_numbers (b); int const anl = an.length (); int const bnl = bn.length (); @@ -51,7 +54,7 @@ string ImageFilenameSorter::extract_numbers (boost::filesystem::path p) { string numbers; - string const ps = p.leaf().string(); + auto const ps = p.leaf().string(); for (size_t i = 0; i < ps.size(); ++i) { if (isdigit (ps[i])) { numbers += ps[i]; |
