Get rid of the HistoryItemVector typedef
Created attachment 291501 [details] Patch
Created attachment 291504 [details] Patch
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.
Committed r207300: <http://trac.webkit.org/changeset/207300>
(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.