diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-09 14:37:14 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-09 14:37:14 (GMT) |
commit | 97ed474431426a50e6080a1cef8098fce297a940 (patch) | |
tree | fca450c5d1c37a8066c826b58b71bde6f6156885 /Source/cmTest.cxx | |
parent | 7e3250da2fa0155a8c83b3aadef0407a701f2953 (diff) | |
download | CMake-97ed474431426a50e6080a1cef8098fce297a940.zip CMake-97ed474431426a50e6080a1cef8098fce297a940.tar.gz CMake-97ed474431426a50e6080a1cef8098fce297a940.tar.bz2 |
Refactor: cmTest::GetProperty returns cmProp
Diffstat (limited to 'Source/cmTest.cxx')
-rw-r--r-- | Source/cmTest.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmTest.cxx b/Source/cmTest.cxx index a26bef3..5bc10c2 100644 --- a/Source/cmTest.cxx +++ b/Source/cmTest.cxx @@ -32,7 +32,7 @@ void cmTest::SetCommand(std::vector<std::string> const& command) this->Command = command; } -const char* cmTest::GetProperty(const std::string& prop) const +cmProp cmTest::GetProperty(const std::string& prop) const { cmProp retVal = this->Properties.GetPropertyValue(prop); if (!retVal) { @@ -40,12 +40,12 @@ const char* cmTest::GetProperty(const std::string& prop) const this->Makefile->GetState()->IsPropertyChained(prop, cmProperty::TEST); if (chain) { if (cmProp p = this->Makefile->GetProperty(prop, chain)) { - return p->c_str(); + return p; } } return nullptr; } - return retVal->c_str(); + return retVal; } bool cmTest::GetPropertyAsBool(const std::string& prop) const |