summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.cxx
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2021-03-24 05:35:49 (GMT)
committerCraig Scott <craig.scott@crascit.com>2021-03-24 05:35:49 (GMT)
commitf226a1678fe27817649ec536ad2923a98a7646a3 (patch)
tree4dcd4542800405850f46d1efafc7a9c260bc5afb /Source/cmStringCommand.cxx
parenta6a52563955a5a42e1fec856d65479444ba5fbdc (diff)
parent88060f471766222c54a080900f73abf29586a6f4 (diff)
downloadCMake-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.cxx4
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 +
"\".";