diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-12 17:17:35 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-12 17:17:35 (GMT) |
commit | 361b1ea4c76fab3f22e99de6bbd926a8956714fa (patch) | |
tree | 23c89abf6d485093b23e1b030ad95b3afedb4847 /Source/cmStandardLevelResolver.cxx | |
parent | 3fc3b43933d0b486aa4eb5d63fc257475feff348 (diff) | |
download | CMake-361b1ea4c76fab3f22e99de6bbd926a8956714fa.zip CMake-361b1ea4c76fab3f22e99de6bbd926a8956714fa.tar.gz CMake-361b1ea4c76fab3f22e99de6bbd926a8956714fa.tar.bz2 |
Refactor: cmStandardLevelResolver::ComputeFeaturesAvailable returns cmProp
Diffstat (limited to 'Source/cmStandardLevelResolver.cxx')
-rw-r--r-- | Source/cmStandardLevelResolver.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmStandardLevelResolver.cxx b/Source/cmStandardLevelResolver.cxx index da36ed6..499317d 100644 --- a/Source/cmStandardLevelResolver.cxx +++ b/Source/cmStandardLevelResolver.cxx @@ -393,7 +393,7 @@ bool cmStandardLevelResolver::CheckCompileFeaturesAvailable( return true; } - const char* features = this->CompileFeaturesAvailable(lang, error); + cmProp features = this->CompileFeaturesAvailable(lang, error); if (!features) { return false; } @@ -471,7 +471,7 @@ bool cmStandardLevelResolver::CompileFeatureKnown( return false; } -const char* cmStandardLevelResolver::CompileFeaturesAvailable( +cmProp cmStandardLevelResolver::CompileFeaturesAvailable( const std::string& lang, std::string* error) const { if (!this->Makefile->GetGlobalGenerator()->GetLanguageEnabled(lang)) { @@ -513,7 +513,7 @@ const char* cmStandardLevelResolver::CompileFeaturesAvailable( } return nullptr; } - return cmToCStr(featuresKnown); + return featuresKnown; } bool cmStandardLevelResolver::GetNewRequiredStandard( |