[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] (no subject)
From: |
Greg Chicares |
Subject: |
[lmi-commits] (no subject) |
Date: |
Tue, 31 May 2016 21:06:23 +0000 (UTC) |
branch: master
commit 9ffac96b9d911b74ff68e0ed28f0cb6ce704f8a1
Author: Gregory W. Chicares <address@hidden>
Date: Tue May 31 20:58:30 2016 +0000
Eliminate needless conversion of product-file names to lowercase
Presumably this was useful decades ago with msw-95, e.g. so that a
product named 'sample' but known to the OS as 'SAMPLE' could be
displayed without ugly capitalization. Now there's no reason to force
the case.
---
ce_product_name.cpp | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/ce_product_name.cpp b/ce_product_name.cpp
index 5c0fd62..1f7b973 100644
--- a/ce_product_name.cpp
+++ b/ce_product_name.cpp
@@ -25,14 +25,13 @@
#include "contains.hpp"
#include "facets.hpp"
#include "global_settings.hpp"
-#include "miscellany.hpp" // lmi_tolower()
#include "path_utility.hpp" // fs::path inserter
#include <boost/filesystem/convenience.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
-#include <algorithm> // std::find(), std::transform()
+#include <algorithm> // std::find()
namespace
{
@@ -48,14 +47,7 @@ std::vector<std::string> fetch_product_names()
{
continue;
}
- std::string name(basename(*i));
- std::transform
- (name.begin()
- ,name.end()
- ,name.begin()
- ,lmi_tolower
- );
- names.push_back(name);
+ names.push_back(basename(*i));
}
if(names.empty())
- [lmi-commits] [lmi] master updated (cdd9aa4 -> 37c5a98), Greg Chicares, 2016/05/31
- [lmi-commits] (no subject), Greg Chicares, 2016/05/31
- [lmi-commits] (no subject),
Greg Chicares <=
- [lmi-commits] (no subject), Greg Chicares, 2016/05/31
- [lmi-commits] (no subject), Greg Chicares, 2016/05/31
- [lmi-commits] (no subject), Greg Chicares, 2016/05/31
- [lmi-commits] (no subject), Greg Chicares, 2016/05/31