diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-13 13:57:23 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-19 08:49:30 (GMT) |
commit | 5a2a275bb41e04891c2541a8e185b6daed259b0b (patch) | |
tree | f925d8384da5c4c9d921a6b47ad648f9b0b1bf78 /Source/cmMakefile.h | |
parent | 2984df91002fe3e3db0d38f364e9842024a8ab2e (diff) | |
download | CMake-5a2a275bb41e04891c2541a8e185b6daed259b0b.zip CMake-5a2a275bb41e04891c2541a8e185b6daed259b0b.tar.gz CMake-5a2a275bb41e04891c2541a8e185b6daed259b0b.tar.bz2 |
Refactor: reduce cmToCStr usage
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 5886c86..a3d2a81 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -399,13 +399,13 @@ public: * Set a regular expression that include files must match * in order to be considered as part of the depend information. */ - void SetIncludeRegularExpression(const char* regex) + void SetIncludeRegularExpression(const std::string& regex) { - this->SetProperty("INCLUDE_REGULAR_EXPRESSION", regex); + this->SetProperty("INCLUDE_REGULAR_EXPRESSION", regex.c_str()); } - const char* GetIncludeRegularExpression() const + const std::string& GetIncludeRegularExpression() const { - return cmToCStr(this->GetProperty("INCLUDE_REGULAR_EXPRESSION")); + return this->GetProperty("INCLUDE_REGULAR_EXPRESSION"); } /** |