[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 2038991 15/33: Improve concinnity
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 2038991 15/33: Improve concinnity |
Date: |
Mon, 3 May 2021 08:15:53 -0400 (EDT) |
branch: master
commit 20389914e2fa3ef518a75343c6c4d180f6ba8a41
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Improve concinnity
---
ce_product_name.cpp | 6 +++---
ce_skin_name.cpp | 6 +++---
dbdict.cpp | 8 ++++----
rate_table_tool.cpp | 6 +++---
wx_test_benchmark_census.cpp | 6 +++---
5 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/ce_product_name.cpp b/ce_product_name.cpp
index 9e829be..2cea0da 100644
--- a/ce_product_name.cpp
+++ b/ce_product_name.cpp
@@ -42,13 +42,13 @@ std::vector<std::string> fetch_product_names()
{
fs::path path(global_settings::instance().data_directory());
std::vector<std::string> names;
- for(auto const& de : fs::directory_iterator(path))
+ for(auto const& i : fs::directory_iterator(path))
{
- if(".policy" != de.path().extension() || de.is_directory())
+ if(".policy" != i.path().extension() || i.is_directory())
{
continue;
}
- names.push_back(de.path().stem().string());
+ names.push_back(i.path().stem().string());
}
if(names.empty())
diff --git a/ce_skin_name.cpp b/ce_skin_name.cpp
index b4d9ebe..1d917c6 100644
--- a/ce_skin_name.cpp
+++ b/ce_skin_name.cpp
@@ -41,13 +41,13 @@ std::vector<std::string> fetch_skin_names()
{
fs::path path(global_settings::instance().data_directory());
std::vector<std::string> names;
- for(auto const& de : fs::directory_iterator(path))
+ for(auto const& i : fs::directory_iterator(path))
{
- if(de.is_directory() || ".xrc" != de.path().extension())
+ if(i.is_directory() || ".xrc" != i.path().extension())
{
continue;
}
- std::string const name(de.path().filename().string());
+ std::string const name(i.path().filename().string());
if(!begins_with(name, "skin"))
{
continue;
diff --git a/dbdict.cpp b/dbdict.cpp
index 89fff73..b06ff54 100644
--- a/dbdict.cpp
+++ b/dbdict.cpp
@@ -1612,17 +1612,17 @@ void DBDictionary::InitAntediluvian()
void print_databases()
{
fs::path path(global_settings::instance().data_directory());
- for(auto const& e : fs::directory_iterator(path))
+ for(auto const& i : fs::directory_iterator(path))
{
- if(e.is_directory() || ".database" != e.path().extension())
+ if(i.is_directory() || ".database" != i.path().extension())
{
continue;
}
try
{
- DBDictionary const z(e.path().string());
+ DBDictionary const z(i.path().string());
- fs::path out_file{e.path()};
+ fs::path out_file{i.path()};
out_file.replace_extension(".dbt");
fs::ofstream os(out_file, ios_out_trunc_binary());
for(auto const& j : z.member_names())
diff --git a/rate_table_tool.cpp b/rate_table_tool.cpp
index 760cc40..c7ae079 100644
--- a/rate_table_tool.cpp
+++ b/rate_table_tool.cpp
@@ -143,11 +143,11 @@ void merge
// to verify than equivalence: databases created this way from
// the same data on different machines have identical md5sums.
std::vector<fs::path> table_names;
- for(auto const& de : fs::directory_iterator(path_to_merge))
+ for(auto const& i : fs::directory_iterator(path_to_merge))
{
- if(".rates" == de.path().extension())
+ if(".rates" == i.path().extension())
{
- table_names.push_back(de.path());
+ table_names.push_back(i.path());
}
}
std::sort(table_names.begin(), table_names.end());
diff --git a/wx_test_benchmark_census.cpp b/wx_test_benchmark_census.cpp
index d3d4f37..a52d4fb 100644
--- a/wx_test_benchmark_census.cpp
+++ b/wx_test_benchmark_census.cpp
@@ -135,14 +135,14 @@ class census_benchmark
LMI_WX_TEST_CASE(benchmark_census)
{
- for(auto const& de : fs::directory_iterator(get_test_files_path()))
+ for(auto const& i : fs::directory_iterator(get_test_files_path()))
{
-
if(!wxString::FromUTF8(de.path().filename().string()).Matches("MSEC*.cns"))
+
if(!wxString::FromUTF8(i.path().filename().string()).Matches("MSEC*.cns"))
{
continue;
}
- census_benchmark b(de.path());
+ census_benchmark b(i.path());
{
// Ensure that the window doesn't stay opened (and possibly affects
- [lmi-commits] [lmi] master ea4515f 04/33: Further deboostify, (continued)
- [lmi-commits] [lmi] master ea4515f 04/33: Further deboostify, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 4faab10 01/33: Adjust whitespace for microconcinnity, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master f4f4756 05/33: Resolve a marked defect [283], Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master c98c00d 10/33: Say "basename" rather than "leaf", Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 1a68606 23/33: Conserve 80-character maximum width, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master e33e392 22/33: Correct and reformat the modify_directory() documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master fd44389 03/33: Include appropriate headers, and say why they're included, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master fdc0f5a 07/33: Deboostify even more, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 41274a8 14/33: Improve documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master e4d2f31 08/33: Rename a function, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 2038991 15/33: Improve concinnity,
Greg Chicares <=
- [lmi-commits] [lmi] master 9235f33 16/33: Avoid implicit conversion to fs::path, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 4ab2c4e 20/33: Further improve modify_directory() documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master b64436f 19/33: Improve modify_directory() documentation and tests, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 0e3d61a 21/33: Rework modify_directory() documentation; augment unit test, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 40096c3 24/33: Conserve 70-character comment width, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 4473403 29/33: Improve output spacing, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master bc805ad 28/33: Augment path-validation unit test, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 6fd9f69 32/33: Remove the last occurrence of /name.check/, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 0c2d6b4 30/33: Revert "Revert "Trap exceptions from filesystem library"", Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master bfa1255 27/33: Enable some tests that were conditionally suppressed, Greg Chicares, 2021/05/03