summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-11-05 16:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-11-05 16:07:39 (GMT)
commitf6e7d5f3a00eee04834840a9534d19445fd3ab8f (patch)
tree13f730473cd908d4d8f4673ff5ea78987385bf5a /Source/cmMakefile.h
parentc43b0505a5806ce38274899cc09f42d3fd7d72ee (diff)
downloadCMake-f6e7d5f3a00eee04834840a9534d19445fd3ab8f.zip
CMake-f6e7d5f3a00eee04834840a9534d19445fd3ab8f.tar.gz
CMake-f6e7d5f3a00eee04834840a9534d19445fd3ab8f.tar.bz2
Reduce the scope of temporary cmProp variables and other improvements
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index edee02b..a864074 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -401,8 +401,7 @@ public:
}
const char* GetIncludeRegularExpression() const
{
- cmProp p = this->GetProperty("INCLUDE_REGULAR_EXPRESSION");
- return p ? p->c_str() : nullptr;
+ return cmToCStr(this->GetProperty("INCLUDE_REGULAR_EXPRESSION"));
}
/**