mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
fixes bug 297973 "It's possible to allocate a nsAString in the Gecko SDK" r=bryner sr=dbaron a=asa
This commit is contained in:
parent
343e7f35b1
commit
08464ff71a
@ -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…
Reference in New Issue
Block a user