Skip to content

Commit c2a3f37

Browse files
authored
Merge pull request github#13084 from kaspersv/kaspersv/cpp-explicit-this-receivers2
C++: Make implicit this receivers explicit
2 parents 335933a + 5b45962 commit c2a3f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/upgrades/282c13bfdbcbd57a887972b47a471342a4ad5507/member_function_this_type.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ClassPointerType extends @derivedtype {
2424

2525
Class getBaseType() { derivedtypes(this, _, _, result) }
2626

27-
string toString() { result = getBaseType().toString() + "*" }
27+
string toString() { result = this.getBaseType().toString() + "*" }
2828
}
2929

3030
class DefinedMemberFunction extends @function {

0 commit comments

Comments
 (0)