summaryrefslogtreecommitdiffstats
path: root/Source/cmCommonTargetGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-04-27 11:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-04-27 11:38:47 (GMT)
commit4fd28b9911934553e3dde77ff395f4e9494eaa2e (patch)
tree3ad2bc9ede9fc8cb4dd3b59f68730b57b3574868 /Source/cmCommonTargetGenerator.cxx
parenta4071b53da1d1356f98685e2065bd3d8904d4930 (diff)
downloadCMake-4fd28b9911934553e3dde77ff395f4e9494eaa2e.zip
CMake-4fd28b9911934553e3dde77ff395f4e9494eaa2e.tar.gz
CMake-4fd28b9911934553e3dde77ff395f4e9494eaa2e.tar.bz2
cmOutputConverter::GetFortranFormat(): delete const char* overload
Diffstat (limited to 'Source/cmCommonTargetGenerator.cxx')
-rw-r--r--Source/cmCommonTargetGenerator.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmCommonTargetGenerator.cxx b/Source/cmCommonTargetGenerator.cxx
index 673936c..fbb9429 100644
--- a/Source/cmCommonTargetGenerator.cxx
+++ b/Source/cmCommonTargetGenerator.cxx
@@ -73,11 +73,12 @@ void cmCommonTargetGenerator::AddModuleDefinitionFlag(
void cmCommonTargetGenerator::AppendFortranFormatFlags(
std::string& flags, cmSourceFile const& source)
{
- cmProp srcfmt = source.GetProperty("Fortran_FORMAT");
+ const std::string srcfmt = source.GetSafeProperty("Fortran_FORMAT");
cmOutputConverter::FortranFormat format =
- cmOutputConverter::GetFortranFormat(srcfmt ? srcfmt->c_str() : nullptr);
+ cmOutputConverter::GetFortranFormat(srcfmt);
if (format == cmOutputConverter::FortranFormatNone) {
- const char* tgtfmt = this->GeneratorTarget->GetProperty("Fortran_FORMAT");
+ const std::string tgtfmt =
+ this->GeneratorTarget->GetSafeProperty("Fortran_FORMAT");
format = cmOutputConverter::GetFortranFormat(tgtfmt);
}
const char* var = nullptr;