diff --git a/mozilla/xpcom/base/nsCOMPtr.h b/mozilla/xpcom/base/nsCOMPtr.h index eeb1125fb23..be39e2d2292 100644 --- a/mozilla/xpcom/base/nsCOMPtr.h +++ b/mozilla/xpcom/base/nsCOMPtr.h @@ -236,10 +236,7 @@ struct already_AddRefed // nothing else to do here } - operator T*() const - { - return mRawPtr; - } + T* get() const { return mRawPtr; } T* mRawPtr; }; diff --git a/mozilla/xpcom/glue/nsCOMPtr.h b/mozilla/xpcom/glue/nsCOMPtr.h index eeb1125fb23..be39e2d2292 100644 --- a/mozilla/xpcom/glue/nsCOMPtr.h +++ b/mozilla/xpcom/glue/nsCOMPtr.h @@ -236,10 +236,7 @@ struct already_AddRefed // nothing else to do here } - operator T*() const - { - return mRawPtr; - } + T* get() const { return mRawPtr; } T* mRawPtr; };