summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-09-18 09:07:48 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-09-19 17:11:07 (GMT)
commit3a1e6f5f59a38ecbaf8f1dcc8872324a73687f02 (patch)
treec98b106bec9f45b5e9f71201a89968c0cf164f3a /Source/cmCPluginAPI.cxx
parentdffa3f485ce5a2336a7fd06c94522e53b0cab37e (diff)
downloadCMake-3a1e6f5f59a38ecbaf8f1dcc8872324a73687f02.zip
CMake-3a1e6f5f59a38ecbaf8f1dcc8872324a73687f02.tar.gz
CMake-3a1e6f5f59a38ecbaf8f1dcc8872324a73687f02.tar.bz2
remove cmToCStr function
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index e922ee5..e460031 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -140,7 +140,7 @@ const char* CCONV cmGetCurrentOutputDirectory(void* arg)
const char* CCONV cmGetDefinition(void* arg, const char* def)
{
cmMakefile* mf = static_cast<cmMakefile*>(arg);
- return cmToCStr(mf->GetDefinition(def));
+ return mf->GetDefinition(def).GetCStr();
}
int CCONV cmIsOn(void* arg, const char* name)
@@ -592,12 +592,12 @@ const char* CCONV cmSourceFileGetProperty(void* arg, const char* prop)
{
cmCPluginAPISourceFile* sf = static_cast<cmCPluginAPISourceFile*>(arg);
if (cmSourceFile* rsf = sf->RealSourceFile) {
- return cmToCStr(rsf->GetProperty(prop));
+ return rsf->GetProperty(prop).GetCStr();
}
if (!strcmp(prop, "LOCATION")) {
return sf->FullPath.c_str();
}
- return cmToCStr(sf->Properties.GetPropertyValue(prop));
+ return sf->Properties.GetPropertyValue(prop).GetCStr();
}
int CCONV cmSourceFileGetPropertyAsBool(void* arg, const char* prop)