mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
Code style: add missed explicit 'this->'
CMake uses explicit 'this->' style. Using custom clang-tidy check we can detect and fix places where 'this->' was missed.
This commit is contained in:
@@ -126,7 +126,7 @@ bool cmProcessOutput::DecodeText(std::string raw, std::string& decoded,
|
||||
bool cmProcessOutput::DecodeText(const char* data, size_t length,
|
||||
std::string& decoded, size_t id)
|
||||
{
|
||||
return DecodeText(std::string(data, length), decoded, id);
|
||||
return this->DecodeText(std::string(data, length), decoded, id);
|
||||
}
|
||||
|
||||
bool cmProcessOutput::DecodeText(std::vector<char> raw,
|
||||
@@ -134,7 +134,7 @@ bool cmProcessOutput::DecodeText(std::vector<char> raw,
|
||||
{
|
||||
std::string str;
|
||||
const bool success =
|
||||
DecodeText(std::string(raw.begin(), raw.end()), str, id);
|
||||
this->DecodeText(std::string(raw.begin(), raw.end()), str, id);
|
||||
decoded.assign(str.begin(), str.end());
|
||||
return success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user