summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-09-03 11:30:00 -0400
committervvs31415 <vvs31415@users.noreply.github.com>2020-09-03 11:36:54 -0400
commit1380b4376408a1ec97bc23f521c067a83dc58680 (patch)
treee51d8351d2b61d08a6798fa3a71578c75fba458d /Source/cmGlobalVisualStudio7Generator.cxx
parentca5babfd7a1da8e32f927ad086fdd91c2b09853b (diff)
downloadcmake-1380b4376408a1ec97bc23f521c067a83dc58680.tar.gz
Refactor: Use cmToCStr()
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 73a2caac39..84cfaeb67a 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -381,8 +381,7 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution(
std::string location = *expath;
cmProp p = target->GetProperty("VS_PROJECT_TYPE");
- this->WriteExternalProject(fout, project, location,
- p ? p->c_str() : nullptr,
+ this->WriteExternalProject(fout, project, location, cmToCStr(p),
target->GetUtilities());
written = true;
} else {