summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-16 18:04:59 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-16 18:04:59 +0000
commitccef7aa07e895d3a68359608715f85109c367bef (patch)
treedb21d684590e381d9287c0bdee210791019f0304 /base
parent7d010c9b8fd7740e388e9b42bf639235ed4840f1 (diff)
downloadchromium_src-ccef7aa07e895d3a68359608715f85109c367bef.zip
chromium_src-ccef7aa07e895d3a68359608715f85109c367bef.tar.gz
chromium_src-ccef7aa07e895d3a68359608715f85109c367bef.tar.bz2
Address review comment I forgot in scoped_comptr checkin.
TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62865 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/win/scoped_comptr.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/base/win/scoped_comptr.h b/base/win/scoped_comptr.h
index 385c79f..b65aaff 100644
--- a/base/win/scoped_comptr.h
+++ b/base/win/scoped_comptr.h
@@ -22,7 +22,6 @@ class ScopedComPtr : public scoped_refptr<Interface> {
public:
// Utility template to prevent users of ScopedComPtr from calling AddRef
// and/or Release() without going through the ScopedComPtr class.
- template <class Interface>
class BlockIUnknownMethods : public Interface {
private:
STDMETHOD(QueryInterface)(REFIID iid, void** object) = 0;
@@ -144,9 +143,9 @@ class ScopedComPtr : public scoped_refptr<Interface> {
// There's still a way to call these methods if you absolutely must
// by statically casting the ScopedComPtr instance to the wrapped interface
// and then making the call... but generally that shouldn't be necessary.
- BlockIUnknownMethods<Interface>* operator->() const {
+ BlockIUnknownMethods* operator->() const {
DCHECK(ptr_ != NULL);
- return reinterpret_cast<BlockIUnknownMethods<Interface>*>(ptr_);
+ return reinterpret_cast<BlockIUnknownMethods*>(ptr_);
}
// Pull in operator=() from the parent class.