Skip to content

Commit de2e8b0

Browse files
committed
explicit "this" qualifiers
1 parent ad86e57 commit de2e8b0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cpp/ql/lib/experimental/cryptography/CryptoArtifact.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ abstract class KeyGeneration extends CryptographicOperation {
7878
abstract CryptographicAlgorithm getAlgorithm();
7979

8080
int getKeySizeInBits(CryptographicAlgorithm alg) {
81-
result = getKeyConfigurationSource(alg).(Literal).getValue().toInt()
81+
result = this.getKeyConfigurationSource(alg).(Literal).getValue().toInt()
8282
}
8383

8484
predicate hasConstantKeySize(CryptographicAlgorithm alg) { exists(this.getKeySizeInBits(alg)) }
@@ -87,7 +87,7 @@ abstract class KeyGeneration extends CryptographicOperation {
8787
exists(this.getKeyConfigurationSource(alg))
8888
}
8989

90-
Expr getAKeyConfigurationSource() { result = getKeyConfigurationSource(_) }
90+
Expr getAKeyConfigurationSource() { result = this.getKeyConfigurationSource(_) }
9191
}
9292

9393
abstract class AsymmetricKeyGeneration extends KeyGeneration { }

python/ql/lib/experimental/cryptography/CryptoArtifact.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ abstract class CryptographicOperation extends CryptographicArtifact, API::CallNo
6262

6363
/** A key generation operation for asymmetric keys */
6464
abstract class KeyGen extends CryptographicOperation {
65-
int getAKeySizeInBits() { result = getKeySizeInBits(_) }
65+
int getAKeySizeInBits() { result = this.getKeySizeInBits(_) }
6666

6767
final predicate hasKeySize(DataFlow::Node configSrc) { exists(this.getKeySizeInBits(configSrc)) }
6868

python/ql/lib/experimental/cryptography/modules/CryptographyModule.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ module Encryption {
246246

247247
override string getName() {
248248
exists(string rawName | genericAEADArtifact(_, rawName) = this |
249-
result = normalizedBlockNames(rawName) or
250-
result = normalizedEncryptionName(rawName)
249+
result = this.normalizedBlockNames(rawName) or
250+
result = this.normalizedEncryptionName(rawName)
251251
)
252252
}
253253

@@ -313,9 +313,9 @@ module Encryption {
313313
}
314314

315315
override DataFlow::Node getKeyConfigSrc() {
316-
result = keyBitLengthSrc()
316+
result = this.keyBitLengthSrc()
317317
or
318-
not exists(keyBitLengthSrc()) and result = this
318+
not exists(this.keyBitLengthSrc()) and result = this
319319
}
320320
}
321321
}

0 commit comments

Comments
 (0)