mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
cmFileTime: Make cmFileTime::Compare method const
This commit is contained in:
@@ -50,7 +50,7 @@ public:
|
|||||||
* @brief Compare file modification times.
|
* @brief Compare file modification times.
|
||||||
* @return -1, 0, +1 for this older, same, or newer than ftm.
|
* @return -1, 0, +1 for this older, same, or newer than ftm.
|
||||||
*/
|
*/
|
||||||
int Compare(cmFileTime const& ftm)
|
int Compare(cmFileTime const& ftm) const
|
||||||
{
|
{
|
||||||
NSC const diff = this->NS - ftm.NS;
|
NSC const diff = this->NS - ftm.NS;
|
||||||
if (diff == 0) {
|
if (diff == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user