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/cmQTWrapCPPCommand.cxx | |
parent | ca5babfd7a1da8e32f927ad086fdd91c2b09853b (diff) | |
download | CMake-1380b4376408a1ec97bc23f521c067a83dc58680.zip CMake-1380b4376408a1ec97bc23f521c067a83dc58680.tar.gz CMake-1380b4376408a1ec97bc23f521c067a83dc58680.tar.bz2 |
Refactor: Use cmToCStr()
Diffstat (limited to 'Source/cmQTWrapCPPCommand.cxx')
-rw-r--r-- | Source/cmQTWrapCPPCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQTWrapCPPCommand.cxx b/Source/cmQTWrapCPPCommand.cxx index 795c2ee..de462db 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. |