зеркало из https://github.com/mozilla/gecko-dev.git
Bug 253941 Compilers that know about explicit constructors should be able to stop you from assigning nsISupports and derived pointers directly into incompatible nsCOMPtrs r=scc sr=dbaron
This commit is contained in:
Родитель
40a5a65cf4
Коммит
6a176399ec
|
@ -344,6 +344,7 @@ class nsCOMPtr_helper
|
|||
class NS_COM nsQueryInterface
|
||||
{
|
||||
public:
|
||||
explicit
|
||||
nsQueryInterface( nsISupports* aRawPtr )
|
||||
: mRawPtr(aRawPtr)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче