diff options
Diffstat (limited to 'base/win')
-rw-r--r-- | base/win/scoped_comptr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/win/scoped_comptr.h b/base/win/scoped_comptr.h index b65aaff..6375218 100644 --- a/base/win/scoped_comptr.h +++ b/base/win/scoped_comptr.h @@ -82,6 +82,11 @@ class ScopedComPtr : public scoped_refptr<Interface> { return &ptr_; } + // A convenience for whenever a void pointer is needed as an out argument. + void** ReceiveVoid() { + return reinterpret_cast<void**>(Receive()); + } + template <class Query> HRESULT QueryInterface(Query** p) { DCHECK(p != NULL); |