diff options
author | Craig Scott <craig.scott@crascit.com> | 2021-03-24 05:35:49 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2021-03-24 05:35:49 (GMT) |
commit | f226a1678fe27817649ec536ad2923a98a7646a3 (patch) | |
tree | 4dcd4542800405850f46d1efafc7a9c260bc5afb /Source/cmStringCommand.cxx | |
parent | a6a52563955a5a42e1fec856d65479444ba5fbdc (diff) | |
parent | 88060f471766222c54a080900f73abf29586a6f4 (diff) | |
download | CMake-f226a1678fe27817649ec536ad2923a98a7646a3.zip CMake-f226a1678fe27817649ec536ad2923a98a7646a3.tar.gz CMake-f226a1678fe27817649ec536ad2923a98a7646a3.tar.bz2 |
Merge branch 'master' into nsis-branding-trim-position
Diffstat (limited to 'Source/cmStringCommand.cxx')
-rw-r--r-- | Source/cmStringCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx index 23fc3e0..5fa309d 100644 --- a/Source/cmStringCommand.cxx +++ b/Source/cmStringCommand.cxx @@ -241,7 +241,7 @@ bool RegexMatch(std::vector<std::string> const& args, status.GetMakefile().ClearMatches(); // Compile the regular expression. cmsys::RegularExpression re; - if (!re.compile(regex.c_str())) { + if (!re.compile(regex)) { std::string e = "sub-command REGEX, mode MATCH failed to compile regex \"" + regex + "\"."; @@ -283,7 +283,7 @@ bool RegexMatchAll(std::vector<std::string> const& args, status.GetMakefile().ClearMatches(); // Compile the regular expression. cmsys::RegularExpression re; - if (!re.compile(regex.c_str())) { + if (!re.compile(regex)) { std::string e = "sub-command REGEX, mode MATCHALL failed to compile regex \"" + regex + "\"."; |