Skip to content

Commit 05c1b83

Browse files
committed
drop this-> (team preference)
1 parent e893625 commit 05c1b83

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib_json/json_value.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,29 +1019,29 @@ Value Value::removeMember(const std::string& key) {
10191019
}
10201020

10211021
bool Value::removeIndex(ArrayIndex index, Value* removed) {
1022-
if (this->type_ != arrayValue) {
1022+
if (type_ != arrayValue) {
10231023
return false;
10241024
}
10251025
#ifdef JSON_VALUE_USE_INTERNAL_MAP
10261026
JSON_FAIL_MESSAGE("removeIndex is not implemented for ValueInternalArray.");
10271027
return false;
10281028
#else
10291029
CZString key(index);
1030-
ObjectValues::iterator it = this->value_.map_->find(key);
1031-
if (it == this->value_.map_->end()) {
1030+
ObjectValues::iterator it = value_.map_->find(key);
1031+
if (it == value_.map_->end()) {
10321032
return false;
10331033
}
10341034
*removed = it->second;
1035-
ArrayIndex oldSize = this->size();
1035+
ArrayIndex oldSize = size();
10361036
// shift left all items left, into the place of the "removed"
10371037
for (ArrayIndex i=index; i<oldSize-1; i++){
10381038
CZString key(i);
1039-
(*this->value_.map_)[key] = (*this)[i+1];
1039+
(*value_.map_)[key] = (*this)[i+1];
10401040
}
10411041
// erase the last one ("leftover")
10421042
CZString keyLast(oldSize-1);
1043-
ObjectValues::iterator itLast = this->value_.map_->find(keyLast);
1044-
this->value_.map_->erase(itLast);
1043+
ObjectValues::iterator itLast = value_.map_->find(keyLast);
1044+
value_.map_->erase(itLast);
10451045
return true;
10461046
#endif
10471047
}

0 commit comments

Comments
 (0)