summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackDebGenerator.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/CPack/cmCPackDebGenerator.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/CPack/cmCPackDebGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index a3b9434..6ba28d1 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -124,8 +124,8 @@ DebGenerator::DebGenerator(
<< debianCompressionType << std::endl);
}
- if (numThreads != nullptr) {
- if (!cmStrToLong(numThreads, &this->NumThreads)) {
+ if (numThreads) {
+ if (!cmStrToLong(*numThreads, &this->NumThreads)) {
this->NumThreads = 1;
cmCPackLogger(cmCPackLog::LOG_ERROR,
"Unrecognized number of threads: " << numThreads
@@ -703,7 +703,7 @@ bool cmCPackDebGenerator::createDebPackages()
&cmCPackDebGenerator::createDeb);
cmValue dbgsymdir_path = this->GetOption("GEN_DBGSYMDIR");
if (this->IsOn("GEN_CPACK_DEBIAN_DEBUGINFO_PACKAGE") && dbgsymdir_path) {
- retval = make_package(dbgsymdir_path, "GEN_CPACK_DBGSYM_OUTPUT_FILE_NAME",
+ retval = make_package(*dbgsymdir_path, "GEN_CPACK_DBGSYM_OUTPUT_FILE_NAME",
&cmCPackDebGenerator::createDbgsymDDeb) &&
retval;
}