diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-09-03 15:30:00 (GMT) |
---|---|---|
committer | vvs31415 <vvs31415@users.noreply.github.com> | 2020-09-03 15:36:54 (GMT) |
commit | 1380b4376408a1ec97bc23f521c067a83dc58680 (patch) | |
tree | e51d8351d2b61d08a6798fa3a71578c75fba458d /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | ca5babfd7a1da8e32f927ad086fdd91c2b09853b (diff) | |
download | CMake-1380b4376408a1ec97bc23f521c067a83dc58680.zip CMake-1380b4376408a1ec97bc23f521c067a83dc58680.tar.gz CMake-1380b4376408a1ec97bc23f521c067a83dc58680.tar.bz2 |
Refactor: Use cmToCStr()
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index dc61def..0b2b5d9 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -515,7 +515,7 @@ void cmVisualStudio10TargetGenerator::Generate() p = this->GeneratorTarget->GetProperty( "DOTNET_TARGET_FRAMEWORK_VERSION"); } - const char* targetFrameworkVersion = p ? p->c_str() : nullptr; + const char* targetFrameworkVersion = cmToCStr(p); if (!targetFrameworkVersion && this->ProjectType == csproj && this->GlobalGenerator->TargetsWindowsCE() && this->GlobalGenerator->GetVersion() == |