summaryrefslogtreecommitdiff
path: root/Source/cmQTWrapCPPCommand.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/cmQTWrapCPPCommand.cxx
parentca5babfd7a1da8e32f927ad086fdd91c2b09853b (diff)
downloadcmake-1380b4376408a1ec97bc23f521c067a83dc58680.tar.gz
Refactor: Use cmToCStr()
Diffstat (limited to 'Source/cmQTWrapCPPCommand.cxx')
-rw-r--r--Source/cmQTWrapCPPCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQTWrapCPPCommand.cxx b/Source/cmQTWrapCPPCommand.cxx
index 795c2ee5a9..de462db350 100644
--- a/Source/cmQTWrapCPPCommand.cxx
+++ b/Source/cmQTWrapCPPCommand.cxx
@@ -41,7 +41,7 @@ bool cmQTWrapCPPCommand(std::vector<std::string> const& args,
cmSourceFile* sf = mf.GetOrCreateSource(newName, true);
if (curr) {
cmProp p = curr->GetProperty("ABSTRACT");
- sf->SetProperty("ABSTRACT", p ? p->c_str() : nullptr);
+ sf->SetProperty("ABSTRACT", cmToCStr(p));
}
// Compute the name of the header from which to generate the file.