X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fcase_insensitive_sorter.cc;h=4bf3c2d18217fd21ea9b1608874b27d3d8b1284c;hp=1dfdb01f35f7d48e89f3f89863cc058ef560a9be;hb=2d4e8c5f69cc694625ad95dcee554499605f823b;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05 diff --git a/src/lib/case_insensitive_sorter.cc b/src/lib/case_insensitive_sorter.cc index 1dfdb01f3..4bf3c2d18 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,19 @@ */ + #include "case_insensitive_sorter.h" #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;