lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 2025958 06/33: Names are stronger than commen


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 2025958 06/33: Names are stronger than comments
Date: Mon, 3 May 2021 08:15:51 -0400 (EDT)

branch: master
commit 2025958ba8014aa20138369017b957a55fb8d37c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Names are stronger than comments
---
 rate_table.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/rate_table.cpp b/rate_table.cpp
index 57db9de..684dfcf 100644
--- a/rate_table.cpp
+++ b/rate_table.cpp
@@ -194,9 +194,8 @@ inline bool stream_read(std::istream& is, void* data, 
std::size_t length)
 // propagate.
 void remove_nothrow(fs::path const& path)
 {
-    std::error_code ec;
-    fs::remove(path, ec);
-    // Intentionally ignore the error code value.
+    std::error_code deliberately_ignored;
+    fs::remove(path, deliberately_ignored);
 }
 
 // Helper function wrapping std::strtoull() and hiding its peculiarities:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]