Changeset 25240 in webkit for trunk/JavaScriptCore/wtf/Vector.h


Ignore:
Timestamp:
Aug 25, 2007, 7:00:03 AM (18 years ago)
Author:
bdash
Message:

2007-08-25 Peter Kasting <[email protected]>

Reviewed by Sam Weinig.

Part 2 of http://bugs.webkit.org/show_bug.cgi?id=14967.
Eliminate all remaining implicit conversions of wtf::Vector<T> to T*. Where code was
previously checking that the Vector's data pointer was non-NULL, check !Vector::isEmpty()
instead.

  • wtf/Vector.h: (WTF::Vector::data):

2007-08-25 Peter Kasting <[email protected]>

Reviewed by Sam Weinig.

Part 2 of http://bugs.webkit.org/show_bug.cgi?id=14967.
Eliminate all remaining implicit conversions of wtf::Vector<T> to T*. Where code was
previously checking that the Vector's data pointer was non-NULL, check !Vector::isEmpty()
instead.

  • bindings/js/kjs_navigator.cpp: (KJS::PluginBase::cachePluginDataIfNecessary):
  • loader/mac/LoaderNSURLExtras.m: (suggestedFilenameWithMIMEType):
  • page/FrameView.cpp: (WebCore::FrameView::~FrameView): (WebCore::FrameView::pauseScheduledEvents): (WebCore::FrameView::resumeScheduledEvents): (WebCore::FrameView::dispatchScheduledEvents):
  • platform/mac/PlugInInfoStoreMac.mm: (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Vector.h

    r21221 r25240  
    423423        T* data() { return m_impl.buffer(); }
    424424        const T* data() const { return m_impl.buffer(); }
    425         operator T*() { return data(); }
    426         operator const T*() const { return data(); }
    427425
    428426        iterator begin() { return data(); }
Note: See TracChangeset for help on using the changeset viewer.