Changeset 177130 in webkit for trunk/Source/JavaScriptCore/parser/Parser.h
- Timestamp:
- Dec 10, 2014, 9:31:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.h
r177001 r177130 38 38 #include <wtf/Forward.h> 39 39 #include <wtf/Noncopyable.h> 40 #include <wtf/OwnPtr.h>41 40 #include <wtf/RefPtr.h> 42 41 namespace JSC { … … 130 129 { 131 130 if (rhs.m_labels) { 132 m_labels = adoptPtr(new LabelStack);131 m_labels = std::make_unique<LabelStack>(); 133 132 134 133 typedef LabelStack::const_iterator iterator; … … 150 149 { 151 150 if (!m_labels) 152 m_labels = adoptPtr(new LabelStack);151 m_labels = std::make_unique<LabelStack>(); 153 152 m_labels->append(ScopeLabelInfo(label->impl(), isLoop)); 154 153 } … … 358 357 359 358 typedef Vector<ScopeLabelInfo, 2> LabelStack; 360 OwnPtr<LabelStack> m_labels;359 std::unique_ptr<LabelStack> m_labels; 361 360 IdentifierSet m_declaredParameters; 362 361 IdentifierSet m_declaredVariables; … … 817 816 const SourceCode* m_source; 818 817 ParserArena m_parserArena; 819 OwnPtr<LexerType> m_lexer;818 std::unique_ptr<LexerType> m_lexer; 820 819 821 820 bool m_hasStackOverflow;
Note:
See TracChangeset
for help on using the changeset viewer.