diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-17 09:56:48 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-17 09:58:46 (GMT) |
commit | 7e154ebd59724d43bf29a8e1c648d6cf7f0e61e4 (patch) | |
tree | 1af10b5267eb0f9821313bb3eb47900b2d205fe8 /Source/cmSystemTools.h | |
parent | 241048d6ceb5dd4a16950c29286aebbcc46e565c (diff) | |
download | CMake-7e154ebd59724d43bf29a8e1c648d6cf7f0e61e4.zip CMake-7e154ebd59724d43bf29a8e1c648d6cf7f0e61e4.tar.gz CMake-7e154ebd59724d43bf29a8e1c648d6cf7f0e61e4.tar.bz2 |
cmSystemTools::VersionCompare: use std::string for arguments
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index be817b1..715724c 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -284,7 +284,10 @@ public: /** * Compare versions */ - static bool VersionCompare(CompareOp op, const char* lhs, const char* rhs); + static bool VersionCompare(CompareOp op, const std::string& lhs, + const std::string& rhs); + static bool VersionCompare(CompareOp op, const std::string& lhs, + const char rhs[]); static bool VersionCompareEqual(std::string const& lhs, std::string const& rhs); static bool VersionCompareGreater(std::string const& lhs, |