Skip to content

Commit ac05bfc

Browse files
committed
C++: Remove some redundant toStrings
1 parent 6325dd2 commit ac05bfc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cpp/ql/lib/semmle/code/cpp/PrintAST.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ class ConceptIdExprArgumentsNode extends PrintAstNode, TConceptIdExprArgumentsNo
645645

646646
override string getChildAccessorPredicateInternal(int childIndex) {
647647
exists(this.getChildInternal(childIndex)) and
648-
result = "getTemplateArgument(" + childIndex.toString() + ")"
648+
result = "getTemplateArgument(" + childIndex + ")"
649649
}
650650

651651
/**
@@ -698,7 +698,7 @@ class FunctionParametersNode extends PrintAstNode, TFunctionParametersNode {
698698

699699
override string getChildAccessorPredicateInternal(int childIndex) {
700700
exists(this.getChildInternal(childIndex)) and
701-
result = "getParameter(" + childIndex.toString() + ")"
701+
result = "getParameter(" + childIndex + ")"
702702
}
703703

704704
/**
@@ -725,7 +725,7 @@ class RequiresExprParametersNode extends PrintAstNode, TRequiresExprParametersNo
725725

726726
override string getChildAccessorPredicateInternal(int childIndex) {
727727
exists(this.getChildInternal(childIndex)) and
728-
result = "getParameter(" + childIndex.toString() + ")"
728+
result = "getParameter(" + childIndex + ")"
729729
}
730730

731731
/**
@@ -752,7 +752,7 @@ class ConstructorInitializersNode extends PrintAstNode, TConstructorInitializers
752752

753753
final override string getChildAccessorPredicateInternal(int childIndex) {
754754
exists(this.getChildInternal(childIndex)) and
755-
result = "getInitializer(" + childIndex.toString() + ")"
755+
result = "getInitializer(" + childIndex + ")"
756756
}
757757

758758
/**
@@ -779,7 +779,7 @@ class DestructorDestructionsNode extends PrintAstNode, TDestructorDestructionsNo
779779

780780
final override string getChildAccessorPredicateInternal(int childIndex) {
781781
exists(this.getChildInternal(childIndex)) and
782-
result = "getDestruction(" + childIndex.toString() + ")"
782+
result = "getDestruction(" + childIndex + ")"
783783
}
784784

785785
/**

0 commit comments

Comments
 (0)