Skip to content

Commit f430cf9

Browse files
committed
C++: Use hasGlobalName.
1 parent aa13257 commit f430cf9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/Allocation.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class SizelessAllocationFunction extends AllocationFunction {
223223
class 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

cpp/ql/src/semmle/code/cpp/models/implementations/Deallocation.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class StandardDeallocationFunction extends DeallocationFunction {
8787
class 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

0 commit comments

Comments
 (0)