X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcase_insensitive_sorter.cc;h=540b3cfe5e37bdaa23af20ea8b24767a49e9aaca;hb=a60668a37f05a125954ac5e03db0530995ac5769;hp=1dfdb01f35f7d48e89f3f89863cc058ef560a9be;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/case_insensitive_sorter.cc b/src/lib/case_insensitive_sorter.cc index 1dfdb01f3..540b3cfe5 100644 --- a/src/lib/case_insensitive_sorter.cc +++ b/src/lib/case_insensitive_sorter.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2016 Carl Hetherington + Copyright (C) 2016-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,18 +18,20 @@ */ + #include "case_insensitive_sorter.h" #include -#include -#include +#include + 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;