fixes bug 297973 "It's possible to allocate a nsAString in the Gecko SDK" r=bryner sr=dbaron a=asa
git-svn-id: svn://10.0.0.236/trunk@174852 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fecaf7f5b3
commit
b19c32b495
@ -923,6 +923,10 @@ public:
|
||||
|
||||
#endif // MOZILLA_INTERNAL_API
|
||||
|
||||
protected:
|
||||
// Prevent people from allocating a nsAString directly.
|
||||
~nsAString_external() {}
|
||||
|
||||
private:
|
||||
void *v;
|
||||
};
|
||||
@ -1024,6 +1028,10 @@ public:
|
||||
|
||||
#endif // MOZILLA_INTERNAL_API
|
||||
|
||||
protected:
|
||||
// Prevent people from allocating a nsACString directly.
|
||||
~nsACString_external() {}
|
||||
|
||||
private:
|
||||
void *v;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user