mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -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:
@@ -966,21 +966,21 @@ public:
|
||||
|
||||
const std::string& Args::PopFront(cm::string_view error)
|
||||
{
|
||||
if (empty()) {
|
||||
if (this->empty()) {
|
||||
throw json_error({ error });
|
||||
}
|
||||
const std::string& res = *begin();
|
||||
advance(1);
|
||||
const std::string& res = *this->begin();
|
||||
this->advance(1);
|
||||
return res;
|
||||
}
|
||||
|
||||
const std::string& Args::PopBack(cm::string_view error)
|
||||
{
|
||||
if (empty()) {
|
||||
if (this->empty()) {
|
||||
throw json_error({ error });
|
||||
}
|
||||
const std::string& res = *(end() - 1);
|
||||
retreat(1);
|
||||
const std::string& res = *(this->end() - 1);
|
||||
this->retreat(1);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user