mirror of
https://github.com/github/codeql.git
synced 2026-05-24 16:17:07 +02:00
C++: Consistent use of 'this.getIndirection()' in 'toString'.
This commit is contained in:
@@ -136,7 +136,7 @@ private module SourceVariables {
|
||||
NormalSourceVariable() { this = TNormalSourceVariable(base, ind) }
|
||||
|
||||
final override string toString() {
|
||||
if ind = 0
|
||||
if this.getIndirection() = 0
|
||||
then result = "&" + base.toString()
|
||||
else result = repeatStars(this.getIndirection() - 1) + base.toString()
|
||||
}
|
||||
@@ -159,7 +159,7 @@ private module SourceVariables {
|
||||
}
|
||||
|
||||
final override string toString() {
|
||||
if ind = 0
|
||||
if this.getIndirection() = 0
|
||||
then result = "&" + base.toString() + " [before crement]"
|
||||
else result = repeatStars(this.getIndirection() - 1) + base.toString() + " [before crement]"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user