Bug 163398

Summary: Get rid of the HistoryItemVector typedef
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, dbates, japhet
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch bdakin: review+

Anders Carlsson
Reported 2016-10-13 11:46:52 PDT
Get rid of the HistoryItemVector typedef
Attachments
Patch (13.34 KB, patch)
2016-10-13 11:48 PDT, Anders Carlsson
no flags
Patch (13.33 KB, patch)
2016-10-13 12:11 PDT, Anders Carlsson
bdakin: review+
Anders Carlsson
Comment 1 2016-10-13 11:48:15 PDT
Anders Carlsson
Comment 2 2016-10-13 12:11:03 PDT
Darin Adler
Comment 3 2016-10-13 12:16:32 PDT
Comment on attachment 291504 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=291504&action=review > Source/WebCore/history/BackForwardList.h:59 > + WEBCORE_EXPORT void backListWithLimit(int, Vector<Ref<HistoryItem>>&); > + WEBCORE_EXPORT void forwardListWithLimit(int, Vector<Ref<HistoryItem>>&); Shouldn't these be return values instead of out arguments? > Source/WebCore/loader/HistoryController.cpp:789 > + const auto& childItems = item->children(); I would have just used auto& here. > Source/WebKit/mac/History/WebHistoryItem.mm:238 > + const auto& children = coreItem->children(); Ditto. > Source/WebKit/mac/History/WebHistoryItem.mm:459 > + const auto& children = coreItem->children(); Ditto. > Source/WebKit/mac/History/WebHistoryItem.mm:513 > + const auto& children = core(_private)->children(); Ditto. > Source/WebKit/win/WebHistoryItem.cpp:292 > + const auto& coreChildren = m_historyItem->children(); Ditto.
Anders Carlsson
Comment 4 2016-10-13 12:18:01 PDT
Anders Carlsson
Comment 5 2016-10-13 12:29:05 PDT
(In reply to comment #3) > Comment on attachment 291504 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=291504&action=review > > > Source/WebCore/history/BackForwardList.h:59 > > + WEBCORE_EXPORT void backListWithLimit(int, Vector<Ref<HistoryItem>>&); > > + WEBCORE_EXPORT void forwardListWithLimit(int, Vector<Ref<HistoryItem>>&); > > Shouldn't these be return values instead of out arguments? > > > Source/WebCore/loader/HistoryController.cpp:789 > > + const auto& childItems = item->children(); > > I would have just used auto& here. > > > Source/WebKit/mac/History/WebHistoryItem.mm:238 > > + const auto& children = coreItem->children(); > > Ditto. > > > Source/WebKit/mac/History/WebHistoryItem.mm:459 > > + const auto& children = coreItem->children(); > > Ditto. > > > Source/WebKit/mac/History/WebHistoryItem.mm:513 > > + const auto& children = core(_private)->children(); > > Ditto. > > > Source/WebKit/win/WebHistoryItem.cpp:292 > > + const auto& coreChildren = m_historyItem->children(); > > Ditto. I intend to change this code more, a lot of these are probably going away.
Note You need to log in before you can comment on or make changes to this bug.