Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: Source/platform/PODRedBlackTree.h

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/platform/Length.cpp ('k') | Source/platform/SharedBuffer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 { 143 {
144 } 144 }
145 145
146 virtual ~PODRedBlackTree() { } 146 virtual ~PODRedBlackTree() { }
147 147
148 // Clearing will delete the contents of the tree. After this call 148 // Clearing will delete the contents of the tree. After this call
149 // isInitialized will return false. 149 // isInitialized will return false.
150 void clear() 150 void clear()
151 { 151 {
152 markFree(m_root); 152 markFree(m_root);
153 m_arena = 0; 153 m_arena = nullptr;
154 m_root = 0; 154 m_root = 0;
155 } 155 }
156 156
157 bool isInitialized() const 157 bool isInitialized() const
158 { 158 {
159 return m_arena; 159 return m_arena;
160 } 160 }
161 161
162 void initIfNeeded() 162 void initIfNeeded()
163 { 163 {
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 Node* m_root; 819 Node* m_root;
820 bool m_needsFullOrderingComparisons; 820 bool m_needsFullOrderingComparisons;
821 #ifndef NDEBUG 821 #ifndef NDEBUG
822 bool m_verboseDebugging; 822 bool m_verboseDebugging;
823 #endif 823 #endif
824 }; 824 };
825 825
826 } // namespace WebCore 826 } // namespace WebCore
827 827
828 #endif // PODRedBlackTree_h 828 #endif // PODRedBlackTree_h
OLDNEW
« no previous file with comments | « Source/platform/Length.cpp ('k') | Source/platform/SharedBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698