Skip to content

Commit aca2ace

Browse files
committed
JS, Python, Ruby: Make implicit this receivers explicit
1 parent e9c2594 commit aca2ace

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)