mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix the static analysis error: m.isVirtual is a tri-state undefined, true, or "pure", and I didn't take that into account when writing the original NS_OVERRIDE analysis.
This commit is contained in:
parent
5760afb9fe
commit
2bb0130dcb
@ -63,7 +63,7 @@ function signaturesMatch(m1, m2)
|
||||
if (m1.shortName != m2.shortName)
|
||||
return false;
|
||||
|
||||
if (m1.isVirtual != m2.isVirtual)
|
||||
if ((!!m1.isVirtual) != (!!m2.isVirtual))
|
||||
return false;
|
||||
|
||||
if (m1.isStatic != m2.isStatic)
|
||||
|
@ -2,6 +2,7 @@ class A
|
||||
{
|
||||
int a(int, char*);
|
||||
void c(char);
|
||||
virtual void d(int) = 0;
|
||||
};
|
||||
|
||||
class B : A
|
||||
@ -13,3 +14,8 @@ class C : B
|
||||
{
|
||||
__attribute__((user("NS_override"))) void c(char);
|
||||
};
|
||||
|
||||
class D : A
|
||||
{
|
||||
__attribute__((user("NS_override"))) void d(int);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user