| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reser
ved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. |
| 3 * All rights reserved. |
| 3 * | 4 * |
| 4 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 8 * | 9 * |
| 9 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 13 * | 14 * |
| 14 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 18 * | 19 * |
| 19 */ | 20 */ |
| 20 | 21 |
| 21 // PassRefPtr will soon be deleted. | 22 // PassRefPtr will soon be deleted. |
| 22 // New code should instead pass ownership of the contents of a RefPtr using std:
:move(). | 23 // New code should instead pass ownership of the contents of a RefPtr using |
| 24 // std::move(). |
| 23 | 25 |
| 24 #ifndef WTF_PassRefPtr_h | 26 #ifndef WTF_PassRefPtr_h |
| 25 #define WTF_PassRefPtr_h | 27 #define WTF_PassRefPtr_h |
| 26 | 28 |
| 27 #include "wtf/Allocator.h" | 29 #include "wtf/Allocator.h" |
| 28 #include "wtf/Assertions.h" | 30 #include "wtf/Assertions.h" |
| 29 #include "wtf/TypeTraits.h" | 31 #include "wtf/TypeTraits.h" |
| 30 | 32 |
| 31 namespace WTF { | 33 namespace WTF { |
| 32 | 34 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 inline T* getPtr(const PassRefPtr<T>& p) { | 219 inline T* getPtr(const PassRefPtr<T>& p) { |
| 218 return p.get(); | 220 return p.get(); |
| 219 } | 221 } |
| 220 | 222 |
| 221 } // namespace WTF | 223 } // namespace WTF |
| 222 | 224 |
| 223 using WTF::PassRefPtr; | 225 using WTF::PassRefPtr; |
| 224 using WTF::adoptRef; | 226 using WTF::adoptRef; |
| 225 | 227 |
| 226 #endif // WTF_PassRefPtr_h | 228 #endif // WTF_PassRefPtr_h |
| OLD | NEW |