C++11 tidying.
[dcpomatic.git] / src / lib / case_insensitive_sorter.cc
index 1dfdb01f35f7d48e89f3f89863cc058ef560a9be..4bf3c2d18217fd21ea9b1608874b27d3d8b1284c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #include "case_insensitive_sorter.h"
 #include <boost/filesystem.hpp>
-#include <boost/foreach.hpp>
-#include <iostream>
+
 
 using std::string;
 
+
 bool
 CaseInsensitiveSorter::operator() (boost::filesystem::path a, boost::filesystem::path b)
 {
-       string x = a.string ();
-       string y = b.string ();
+       auto x = a.string();
+       auto y = b.string();
        transform (x.begin(), x.end(), x.begin(), ::tolower);
        transform (y.begin(), y.end(), y.begin(), ::tolower);
        return x < y;