lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master fd44389 03/33: Include appropriate headers, a


From: Greg Chicares
Subject: [lmi-commits] [lmi] master fd44389 03/33: Include appropriate headers, and say why they're included
Date: Mon, 3 May 2021 08:15:50 -0400 (EDT)

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

    Include appropriate headers, and say why they're included
---
 cache_file_reads.hpp  | 2 --
 calendar_date.cpp     | 2 +-
 miscellany.cpp        | 2 +-
 test_coding_rules.cpp | 2 +-
 4 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/cache_file_reads.hpp b/cache_file_reads.hpp
index f4e359f..df9908c 100644
--- a/cache_file_reads.hpp
+++ b/cache_file_reads.hpp
@@ -27,10 +27,8 @@
 #include "assert_lmi.hpp"
 #include "path.hpp"
 
-#include <ctime>                        // time_t
 #include <map>
 #include <memory>                       // shared_ptr
-#include <string>
 #include <utility>                      // make_pair()
 
 namespace detail
diff --git a/calendar_date.cpp b/calendar_date.cpp
index db1c1a0..05d5de3 100644
--- a/calendar_date.cpp
+++ b/calendar_date.cpp
@@ -29,7 +29,7 @@
 #include "zero.hpp"
 
 #include <algorithm>                    // max(), min()
-#include <ctime>
+#include <ctime>                        // time_t
 #include <iomanip>
 #include <ios>
 #include <istream>
diff --git a/miscellany.cpp b/miscellany.cpp
index 8f7e9b2..73228b0 100644
--- a/miscellany.cpp
+++ b/miscellany.cpp
@@ -32,7 +32,7 @@
 #include <cmath>                        // ceil(), floor()
 #include <cstddef>                      // size_t
 #include <cstdio>                       // snprintf()
-#include <ctime>
+#include <ctime>                        // time_t
 #include <fstream>
 #include <istream>
 #include <iterator>                     // istreambuf_iterator
diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index 92052e6..36e4c4d 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -30,7 +30,7 @@
 #include "ssize_lmi.hpp"
 
 #include <algorithm>                    // is_sorted()
-#include <ctime>
+#include <ctime>                        // time_t
 #include <iomanip>
 #include <ios>
 #include <iostream>



reply via email to

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