mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Fix to make it compile on HP-UX. Define an else clause in the if statement of an inline function. Thanks briano
This commit is contained in:
parent
4a5d7819bb
commit
eb854d55b9
@ -105,14 +105,16 @@ inline nsPermissionState nsPrivilege::add(nsPermissionState p1, nsPermissionStat
|
||||
{
|
||||
if (p1 < p2)
|
||||
return p1;
|
||||
return p2;
|
||||
else
|
||||
return p2;
|
||||
}
|
||||
|
||||
inline nsPrivilege * nsPrivilege::add(nsPrivilege *p1, nsPrivilege *p2)
|
||||
{
|
||||
if (p1->itsPerm < p2->itsPerm)
|
||||
return p1;
|
||||
return p2;
|
||||
else
|
||||
return p2;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user