Changeset 247396 in webkit
- Timestamp:
- Jul 12, 2019 1:58:43 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r247395 r247396 1 2019-07-12 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 WebBackForwardListItem::setPageState should receive pageState by rvalue reference 4 https://bugs.webkit.org/show_bug.cgi?id=199535 5 6 Reviewed by Alex Christensen 7 8 Coverity is complaining here about copying PageState by value in the parameter list. It's 9 sort of a false positive, in that the PageState really does need to be copied here, so this 10 is the best we can do. But pass by value and then WTFMove() is a pretty strange way to write 11 it. Passing by rvalue reference would be better. This makes the copy more clear. 12 13 * Shared/WebBackForwardListItem.h: 14 (WebKit::WebBackForwardListItem::setPageState): 15 * UIProcess/WebProcessProxy.cpp: 16 (WebKit::WebProcessProxy::updateBackForwardItem): 17 1 18 2019-07-12 Youenn Fablet <youenn@apple.com> 2 19 -
trunk/Source/WebKit/Shared/WebBackForwardListItem.h
r246694 r247396 61 61 void setLastProcessIdentifier(const WebCore::ProcessIdentifier& identifier) { m_lastProcessIdentifier = identifier; } 62 62 63 void setPageState(PageState pageState) { m_itemState.pageState = WTFMove(pageState); }63 void setPageState(PageState&& pageState) { m_itemState.pageState = WTFMove(pageState); } 64 64 const PageState& pageState() const { return m_itemState.pageState; } 65 65 -
trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp
r247146 r247396 593 593 return; 594 594 595 item->setPageState( itemState.pageState);595 item->setPageState(PageState { itemState.pageState }); 596 596 } 597 597
Note: See TracChangeset
for help on using the changeset viewer.