summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2023-01-15 15:13:14 (GMT)
committerVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2023-01-16 04:39:02 (GMT)
commitb3edfcf46ec1514a376d4e3dca7538cc750844d5 (patch)
treec5a26d80efd9bbeb2783d8e6508097a2d9ee0b09 /Source/cmComputeLinkInformation.cxx
parent701badbd20a33d8f955cb6d86016d5bf415b8212 (diff)
downloadCMake-b3edfcf46ec1514a376d4e3dca7538cc750844d5.zip
CMake-b3edfcf46ec1514a376d4e3dca7538cc750844d5.tar.gz
CMake-b3edfcf46ec1514a376d4e3dca7538cc750844d5.tar.bz2
cmValue: Use operator* explicitly to convert to std::string; avoid extra call
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 6cfdf62..cd0a1dc 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -366,7 +366,7 @@ cmComputeLinkInformation::cmComputeLinkInformation(
this->LibraryFeatureDescriptors.emplace(
"__CMAKE_LINK_EXECUTABLE",
LibraryFeatureDescriptor{ "__CMAKE_LINK_EXECUTABLE",
- cmStrCat(this->LoaderFlag, "<LIBRARY>") });
+ cmStrCat(*this->LoaderFlag, "<LIBRARY>") });
}
// To link framework using a full path
this->LibraryFeatureDescriptors.emplace(
@@ -858,8 +858,8 @@ bool cmComputeLinkInformation::AddLibraryFeature(std::string const& feature)
return false;
}
- auto items =
- cmExpandListWithBacktrace(langFeature, this->Target->GetBacktrace(), true);
+ auto items = cmExpandListWithBacktrace(*langFeature,
+ this->Target->GetBacktrace(), true);
if ((items.size() == 1 && !IsValidFeatureFormat(items.front().Value)) ||
(items.size() == 3 && !IsValidFeatureFormat(items[1].Value))) {
@@ -1016,8 +1016,8 @@ cmComputeLinkInformation::GetGroupFeature(std::string const& feature)
.first->second;
}
- auto items =
- cmExpandListWithBacktrace(langFeature, this->Target->GetBacktrace(), true);
+ auto items = cmExpandListWithBacktrace(*langFeature,
+ this->Target->GetBacktrace(), true);
// replace LINKER: pattern
this->Target->ResolveLinkerWrapper(items, this->LinkLanguage, true);