Changeset 206377 in webkit
- Timestamp:
- Sep 26, 2016 9:40:38 AM (8 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r206372 r206377 1 2016-09-26 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 std::unique_ptr deleter functions should not check if pointer is null 4 https://bugs.webkit.org/show_bug.cgi?id=162558 5 6 Reviewed by Alex Christensen. 7 8 std::unique_ptr already does this before calling the deleter. 9 10 * wtf/efl/UniquePtrEfl.h: 11 * wtf/glib/GUniquePtr.h: 12 1 13 == Rolled over to ChangeLog-2016-09-26 == -
trunk/Source/WTF/wtf/efl/UniquePtrEfl.h
r184554 r206377 55 55 void operator() (typeName* ptr) const \ 56 56 { \ 57 if (ptr) \ 58 deleterFunc(ptr); \ 57 deleterFunc(ptr); \ 59 58 } \ 60 59 }; -
trunk/Source/WTF/wtf/glib/GUniquePtr.h
r194579 r206377 53 53 void operator() (typeName* ptr) const \ 54 54 { \ 55 if (ptr) \ 56 deleterFunc(ptr); \ 55 deleterFunc(ptr); \ 57 56 } \ 58 57 }; -
trunk/Source/WebCore/ChangeLog
r206375 r206377 1 2016-09-26 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 std::unique_ptr deleter functions should not check if pointer is null 4 https://bugs.webkit.org/show_bug.cgi?id=162558 5 6 Reviewed by Alex Christensen. 7 8 std::unique_ptr already does this before calling the deleter. 9 10 * platform/graphics/x11/XUniquePtr.h: 11 (WebCore::XPtrDeleter::operator()): 12 (WebCore::XPtrDeleter<XImage>::operator()): 13 (WebCore::XPtrDeleter<_XGC>::operator()): 14 (WebCore::XPtrDeleter<__GLXcontextRec>::operator()): 15 1 16 2016-09-26 Per Arne Vollan <pvollan@apple.com> 2 17 -
trunk/Source/WebCore/platform/graphics/x11/XUniquePtr.h
r184197 r206377 42 42 void operator()(T* ptr) const 43 43 { 44 if (ptr) 45 XFree(ptr); 44 XFree(ptr); 46 45 } 47 46 }; … … 53 52 void operator() (XImage* ptr) const 54 53 { 55 if (ptr) 56 XDestroyImage(ptr); 54 XDestroyImage(ptr); 57 55 } 58 56 }; … … 61 59 void operator() (_XGC* ptr) const 62 60 { 63 if (ptr) 64 XFreeGC(downcast<PlatformDisplayX11>(PlatformDisplay::sharedDisplay()).native(), ptr); 61 XFreeGC(downcast<PlatformDisplayX11>(PlatformDisplay::sharedDisplay()).native(), ptr); 65 62 } 66 63 }; … … 72 69 void operator() (__GLXcontextRec* ptr) 73 70 { 74 if (ptr) 75 glXDestroyContext(downcast<PlatformDisplayX11>(PlatformDisplay::sharedDisplay()).native(), ptr); 71 glXDestroyContext(downcast<PlatformDisplayX11>(PlatformDisplay::sharedDisplay()).native(), ptr); 76 72 } 77 73 };
Note: See TracChangeset
for help on using the changeset viewer.