diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-13 18:03:35 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-18 14:09:10 (GMT) |
commit | 31602583930b6c517c439ae8c15df26043031345 (patch) | |
tree | 78ee6064621ea8386cd0f7aef3b78977d0e01578 /Source/cmFileTimeComparison.h | |
parent | 103aa9e46a5a59dc2c41cc1fa1aa6dd406b2924b (diff) | |
download | CMake-31602583930b6c517c439ae8c15df26043031345.zip CMake-31602583930b6c517c439ae8c15df26043031345.tar.gz CMake-31602583930b6c517c439ae8c15df26043031345.tar.bz2 |
cmFileTimeComparison: Replace anonymous private class with std::map
After the switch to `cmFileTime`, the anonymous private class of
`cmFileTimeComparison` held only a `std::map`. This moves the
`std::map` to the `cmFileTimeComparison` class itself and removes the
instantiation of an anonymous private class.
Diffstat (limited to 'Source/cmFileTimeComparison.h')
-rw-r--r-- | Source/cmFileTimeComparison.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmFileTimeComparison.h b/Source/cmFileTimeComparison.h index cc321f0..80ea409 100644 --- a/Source/cmFileTimeComparison.h +++ b/Source/cmFileTimeComparison.h @@ -7,8 +7,7 @@ #include "cmFileTime.h" #include <string> - -class cmFileTimeComparisonInternal; +#include <unordered_map> /** \class cmFileTimeComparison * \brief Caches file modification times in an internal map for fast lookups. @@ -45,8 +44,9 @@ public: */ bool FileTimesDiffer(std::string const& f1, std::string const& f2); -protected: - cmFileTimeComparisonInternal* Internals; +private: + typedef std::unordered_map<std::string, cmFileTime> FileTimeMap; + FileTimeMap FileTimes; }; #endif |