diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-08-18 11:58:04 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-08-18 12:17:50 (GMT) |
commit | f1c529c4fbea1963f7df92597a350e066319a1e1 (patch) | |
tree | a544103f96e0b03a8b659d4d5767360ec05ff1cf /Source/cmStringCommand.cxx | |
parent | 34301441b963a2d7e02b4a4355a6634b3bbb7977 (diff) | |
download | CMake-f1c529c4fbea1963f7df92597a350e066319a1e1.zip CMake-f1c529c4fbea1963f7df92597a350e066319a1e1.tar.gz CMake-f1c529c4fbea1963f7df92597a350e066319a1e1.tar.bz2 |
cmCryptoHash: Accept cm::string_view input
Diffstat (limited to 'Source/cmStringCommand.cxx')
-rw-r--r-- | Source/cmStringCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx index 41d48ed..5bff0e5 100644 --- a/Source/cmStringCommand.cxx +++ b/Source/cmStringCommand.cxx @@ -121,7 +121,7 @@ bool cmStringCommand::HandleHashCommand(std::vector<std::string> const& args) return false; } - std::unique_ptr<cmCryptoHash> hash(cmCryptoHash::New(args[0].c_str())); + std::unique_ptr<cmCryptoHash> hash(cmCryptoHash::New(args[0])); if (hash) { std::string out = hash->HashString(args[2]); this->Makefile->AddDefinition(args[1], out); |