mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
nits: replace some "c" instances with 'c'
This commit is contained in:
@@ -541,11 +541,11 @@ void cmCTestBuildHandler::GenerateXMLLaunched(cmXMLWriter& xml)
|
|||||||
const char* fname = launchDir.GetFile(i);
|
const char* fname = launchDir.GetFile(i);
|
||||||
if (this->IsLaunchedErrorFile(fname) && numErrorsAllowed) {
|
if (this->IsLaunchedErrorFile(fname) && numErrorsAllowed) {
|
||||||
numErrorsAllowed--;
|
numErrorsAllowed--;
|
||||||
fragments.insert(this->CTestLaunchDir + "/" + fname);
|
fragments.insert(this->CTestLaunchDir + '/' + fname);
|
||||||
++this->TotalErrors;
|
++this->TotalErrors;
|
||||||
} else if (this->IsLaunchedWarningFile(fname) && numWarningsAllowed) {
|
} else if (this->IsLaunchedWarningFile(fname) && numWarningsAllowed) {
|
||||||
numWarningsAllowed--;
|
numWarningsAllowed--;
|
||||||
fragments.insert(this->CTestLaunchDir + "/" + fname);
|
fragments.insert(this->CTestLaunchDir + '/' + fname);
|
||||||
++this->TotalWarnings;
|
++this->TotalWarnings;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -157,7 +157,7 @@ private:
|
|||||||
if (!this->Rev.Log.empty()) {
|
if (!this->Rev.Log.empty()) {
|
||||||
// Continue the existing log.
|
// Continue the existing log.
|
||||||
this->Rev.Log += this->Line;
|
this->Rev.Log += this->Line;
|
||||||
this->Rev.Log += "\n";
|
this->Rev.Log += '\n';
|
||||||
} else if (this->Rev.Rev.empty() &&
|
} else if (this->Rev.Rev.empty() &&
|
||||||
this->RegexRevision.find(this->Line)) {
|
this->RegexRevision.find(this->Line)) {
|
||||||
this->Rev.Rev = this->RegexRevision.match(1);
|
this->Rev.Rev = this->RegexRevision.match(1);
|
||||||
@@ -168,7 +168,7 @@ private:
|
|||||||
} else if (!this->RegexBranches.find(this->Line)) {
|
} else if (!this->RegexBranches.find(this->Line)) {
|
||||||
// Start the log.
|
// Start the log.
|
||||||
this->Rev.Log += this->Line;
|
this->Rev.Log += this->Line;
|
||||||
this->Rev.Log += "\n";
|
this->Rev.Log += '\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this->Section != SectionEnd;
|
return this->Section != SectionEnd;
|
||||||
|
@@ -1003,10 +1003,10 @@ std::string cmComputeLinkInformation::NoCaseExpression(const char* str)
|
|||||||
if (*s == '.') {
|
if (*s == '.') {
|
||||||
ret += *s;
|
ret += *s;
|
||||||
} else {
|
} else {
|
||||||
ret += "[";
|
ret += '[';
|
||||||
ret += static_cast<char>(tolower(*s));
|
ret += static_cast<char>(tolower(*s));
|
||||||
ret += static_cast<char>(toupper(*s));
|
ret += static_cast<char>(toupper(*s));
|
||||||
ret += "]";
|
ret += ']';
|
||||||
}
|
}
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
|
@@ -273,7 +273,7 @@ std::string cmExtraKateGenerator::GenerateProjectName(
|
|||||||
const std::string& name, const std::string& type,
|
const std::string& name, const std::string& type,
|
||||||
const std::string& path) const
|
const std::string& path) const
|
||||||
{
|
{
|
||||||
return name + (type.empty() ? "" : "-") + type + "@" + path;
|
return name + (type.empty() ? "" : "-") + type + '@' + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string cmExtraKateGenerator::GetPathBasename(
|
std::string cmExtraKateGenerator::GetPathBasename(
|
||||||
|
Reference in New Issue
Block a user