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:
Oleksandr Koval
2021-01-05 14:32:36 +02:00
parent 764ce15ffb
commit 209daa20b2
127 changed files with 5229 additions and 4583 deletions
+6 -6
View File
@@ -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;
}