diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-02-07 15:06:13 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-08 13:05:32 -0500 |
commit | 77f60392d93f41a8828d3db1d7b76d45f1535d07 (patch) | |
tree | f9269d9beaa720270a4d2eed879d79b9d22aef54 /Source/cmSystemTools.cxx | |
parent | 473ca1ac4a5df336ff09ee2c666e437eabf43bc9 (diff) | |
download | cmake-77f60392d93f41a8828d3db1d7b76d45f1535d07.tar.gz |
stringapi: Accept strings when MD5 hashing data
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 7cc63bbdfa..18eb62e214 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -944,7 +944,7 @@ bool cmSystemTools::RenameFile(const char* oldname, const char* newname) #endif } -bool cmSystemTools::ComputeFileMD5(const char* source, char* md5out) +bool cmSystemTools::ComputeFileMD5(const std::string& source, char* md5out) { #if defined(CMAKE_BUILD_WITH_CMAKE) cmCryptoHashMD5 md5; @@ -959,7 +959,7 @@ bool cmSystemTools::ComputeFileMD5(const char* source, char* md5out) #endif } -std::string cmSystemTools::ComputeStringMD5(const char* input) +std::string cmSystemTools::ComputeStringMD5(const std::string& input) { #if defined(CMAKE_BUILD_WITH_CMAKE) cmCryptoHashMD5 md5; |