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


Ignore:
Timestamp:
Aug 11, 2008, 10:21:23 AM (17 years ago)
Author:
Adam Roben
Message:

Move WTF::notFound into its own header so that it can be used independently of Vector

JavaScriptCore:

Move WTF::notFound into its own header so that it can be used
independently of Vector

Rubberstamped by Darin Adler.

  • JavaScriptCore.vcproj/WTF/WTF.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj: Added NotFound.h to the project.
  • wtf/NotFound.h: Added. Moved the notFound constant here...
  • wtf/Vector.h: ...from here.

WebCore:

Add a ForwardingHeader for wtf/NotFound.h

Rubberstamped by Darin Adler.

  • ForwardingHeaders/wtf/NotFound.h: Added.
File:
1 edited

Legend:

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

    r35425 r35665  
    2626#include "FastMalloc.h"
    2727#include "Noncopyable.h"
     28#include "NotFound.h"
    2829#include "VectorTraits.h"
    2930#include <limits>
     
    3738    using std::max;
    3839   
    39     const size_t notFound = static_cast<size_t>(-1);
    40 
    4140    template <bool needsDestruction, typename T>
    4241    class VectorDestructor;
Note: See TracChangeset for help on using the changeset viewer.