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:
darin%meer.net 2005-06-20 17:26:56 +00:00
parent 343e7f35b1
commit 08464ff71a

View File

@ -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;
};