Skip to content

Commit f29db40

Browse files
authored
Merge pull request github#13011 from kaspersv/kaspersv/explicit-this-receivers-shared2
JS, Python, Ruby: Make implicit this receivers explicit
2 parents 1c80175 + aca2ace commit f29db40

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

javascript/ql/lib/semmle/javascript/security/CryptoAlgorithms.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private CryptographicAlgorithm getBestAlgorithmForName(string name) {
5151
*/
5252
abstract class CryptographicAlgorithm extends TCryptographicAlgorithm {
5353
/** Gets a textual representation of this element. */
54-
string toString() { result = getName() }
54+
string toString() { result = this.getName() }
5555

5656
/**
5757
* Gets the normalized name of this algorithm (upper-case, no spaces, dashes or underscores).

python/ql/lib/semmle/python/concepts/CryptoAlgorithms.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private CryptographicAlgorithm getBestAlgorithmForName(string name) {
5151
*/
5252
abstract class CryptographicAlgorithm extends TCryptographicAlgorithm {
5353
/** Gets a textual representation of this element. */
54-
string toString() { result = getName() }
54+
string toString() { result = this.getName() }
5555

5656
/**
5757
* Gets the normalized name of this algorithm (upper-case, no spaces, dashes or underscores).

ruby/ql/lib/codeql/ruby/security/CryptoAlgorithms.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private CryptographicAlgorithm getBestAlgorithmForName(string name) {
5151
*/
5252
abstract class CryptographicAlgorithm extends TCryptographicAlgorithm {
5353
/** Gets a textual representation of this element. */
54-
string toString() { result = getName() }
54+
string toString() { result = this.getName() }
5555

5656
/**
5757
* Gets the normalized name of this algorithm (upper-case, no spaces, dashes or underscores).

0 commit comments

Comments
 (0)