X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/b37bf2e156556c589aea3e1f58a377f2b1189665..b80e619319b1def83d1e8b4f84042b661be1be7f:/wtf/RetainPtr.h diff --git a/wtf/RetainPtr.h b/wtf/RetainPtr.h index 71260eb..77f25e0 100644 --- a/wtf/RetainPtr.h +++ b/wtf/RetainPtr.h @@ -1,7 +1,5 @@ -// -*- mode: c++; c-basic-offset: 4 -*- /* - * This file is part of the KDE libraries - * Copyright (C) 2005, 2006 Apple Computer, Inc. + * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -23,6 +21,7 @@ #ifndef RetainPtr_h #define RetainPtr_h +#include "TypeTraits.h" #include #include @@ -32,14 +31,6 @@ namespace WTF { - template struct RemovePointer { - typedef T type; - }; - - template struct RemovePointer { - typedef T type; - }; - // Unlike most most of our smart pointers, RetainPtr can take either the pointer type or the pointed-to type, // so both RetainPtr and RetainPtr will work. @@ -58,7 +49,7 @@ namespace WTF { template class RetainPtr { public: - typedef typename RemovePointer::type ValueType; + typedef typename RemovePointer::Type ValueType; typedef ValueType* PtrType; RetainPtr() : m_ptr(0) {}