Skip to content

Commit cff5635

Browse files
committed
C++: Fix getClassAndName parameter name.
1 parent b4a5346 commit cff5635

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/ql/src/semmle/code/cpp/Function.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,14 @@ class Function extends Declaration, ControlFlowNode, AccessHolder, @function {
335335
}
336336

337337
/**
338-
* Gets the class of which this function, called `name`, is a member.
338+
* Gets the class of which this function, called `memberName`, is a member.
339339
*
340340
* Prefer to use `getDeclaringType()` or `getName()` directly if you do not
341341
* need to reason about both.
342342
*/
343343
pragma[nomagic]
344-
Class getClassAndName(string myName) {
345-
this.hasName(myName) and
344+
Class getClassAndName(string memberName) {
345+
this.hasName(memberName) and
346346
this.getDeclaringType() = result
347347
}
348348

0 commit comments

Comments
 (0)