Bug 710805 - Assert validity in xpc_qsBasicString; r=jst

This commit is contained in:
Ms2ger 2012-01-02 19:05:19 +01:00
parent 2db789079c
commit 1f37b86a6b

View File

@ -265,11 +265,13 @@ public:
implementation_type *Ptr()
{
MOZ_ASSERT(mValid);
return reinterpret_cast<implementation_type *>(mBuf);
}
operator interface_type &()
{
MOZ_ASSERT(mValid);
return *Ptr();
}