File tree Expand file tree Collapse file tree
cpp/ql/src/semmle/code/cpp/models/implementations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ class SizelessAllocationFunction extends AllocationFunction {
223223class OperatorNewAllocationFunction extends AllocationFunction {
224224 OperatorNewAllocationFunction ( ) {
225225 exists ( string name |
226- hasGlobalOrStdName ( name ) and
226+ hasGlobalName ( name ) and
227227 (
228228 // operator new(bytes, ...)
229229 name = "operator new" or
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ class StandardDeallocationFunction extends DeallocationFunction {
8787class OperatorDeleteDeallocationFunction extends DeallocationFunction {
8888 OperatorDeleteDeallocationFunction ( ) {
8989 exists ( string name |
90- hasGlobalOrStdName ( name ) and
90+ hasGlobalName ( name ) and
9191 (
9292 // operator delete(pointer, ...)
9393 name = "operator delete" or
You can’t perform that action at this time.
0 commit comments