summaryrefslogtreecommitdiff
path: root/Source/cmIncludeRegularExpressionCommand.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-08-13 15:57:23 +0200
committerMarc Chevrier <marc.chevrier@gmail.com>2021-08-19 10:49:30 +0200
commit5a2a275bb41e04891c2541a8e185b6daed259b0b (patch)
treef925d8384da5c4c9d921a6b47ad648f9b0b1bf78 /Source/cmIncludeRegularExpressionCommand.cxx
parent2984df91002fe3e3db0d38f364e9842024a8ab2e (diff)
downloadcmake-5a2a275bb41e04891c2541a8e185b6daed259b0b.tar.gz
Refactor: reduce cmToCStr usage
Diffstat (limited to 'Source/cmIncludeRegularExpressionCommand.cxx')
-rw-r--r--Source/cmIncludeRegularExpressionCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmIncludeRegularExpressionCommand.cxx b/Source/cmIncludeRegularExpressionCommand.cxx
index 655ebd6e40..cdcc7df71f 100644
--- a/Source/cmIncludeRegularExpressionCommand.cxx
+++ b/Source/cmIncludeRegularExpressionCommand.cxx
@@ -14,7 +14,7 @@ bool cmIncludeRegularExpressionCommand(std::vector<std::string> const& args,
}
cmMakefile& mf = status.GetMakefile();
- mf.SetIncludeRegularExpression(args[0].c_str());
+ mf.SetIncludeRegularExpression(args[0]);
if (args.size() > 1) {
mf.SetComplainRegularExpression(args[1]);