Skip to content

Commit 4ee6ae6

Browse files
committed
Swift: use explicit this to conform to the coding style
1 parent a1fa424 commit 4ee6ae6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

swift/ql/lib/codeql/swift/elements/Diagnostics.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
private import codeql.swift.generated.Diagnostics
22

33
class Diagnostics extends Generated::Diagnostics {
4-
override string toString() { result = getSeverity() + ": " + getText() }
4+
override string toString() { result = this.getSeverity() + ": " + this.getText() }
55

66
string getSeverity() {
7-
getKind() = 1 and result = "error"
7+
this.getKind() = 1 and result = "error"
88
or
9-
getKind() = 2 and result = "warning"
9+
this.getKind() = 2 and result = "warning"
1010
or
11-
getKind() = 3 and result = "note"
11+
this.getKind() = 3 and result = "note"
1212
or
13-
getKind() = 4 and result = "remark"
13+
this.getKind() = 4 and result = "remark"
1414
}
1515
}
1616

0 commit comments

Comments
 (0)