Skip to content
  • mjs's avatar
    Reviewed by Oliver. · b7091e47
    mjs authored
            - added RetainPtr, smart pointer for refcounted ObjC objects and CFTypes
    
            * WebCore.xcodeproj/project.pbxproj:
            * platform/cf/RetainPtr.h: Added.
            (WTF::):
            (WTF::RetainPtr::RetainPtr):
            (WTF::RetainPtr::~RetainPtr):
            (WTF::RetainPtr::get):
            (WTF::RetainPtr::operator*):
            (WTF::RetainPtr::operator->):
            (WTF::RetainPtr::operator!):
            (WTF::RetainPtr::operator UnspecifiedBoolType):
            (WTF::::operator):
            (WTF::::swap):
            (WTF::swap):
            (WTF::operator==):
            (WTF::operator!=):
            (WTF::static_pointer_cast):
            (WTF::const_pointer_cast):
            (WTF::getPtr):
            
            - use it in WidgetMac so it gets tested in at least one place
            
            * platform/mac/WidgetMac.mm:
            (WebCore::Widget::Widget):
            (WebCore::Widget::~Widget):
            (WebCore::Widget::setEnabled):
            (WebCore::Widget::isEnabled):
            (WebCore::Widget::setCursor):
            (WebCore::Widget::getView):
            (WebCore::Widget::setView):
            (WebCore::Widget::getOuterView):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b7091e47