Changeset 259620 in webkit
- Timestamp:
- Apr 6, 2020, 7:16:48 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
editing/TextManipulationController.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r259619 r259620 1 2020-04-06 David Kilzer <ddkilzer@apple.com> 2 3 Use-after-move of Vector<ManipulationToken> in TextManipulationController::observeParagraphs() 4 <https://webkit.org/b/210086> 5 6 Reviewed by Ryosuke Niwa. 7 8 * editing/TextManipulationController.cpp: 9 (WebCore::TextManipulationController::observeParagraphs): 10 - Replace WTFMove() with std::exchange() to fix the clang static 11 analyzer warning. For WTF::Vector, this has no change in 12 behavior. 13 1 14 2020-04-06 Jack Lee <shihchieh_lee@apple.com> 2 15 -
trunk/Source/WebCore/editing/TextManipulationController.cpp
r258525 r259620 305 305 startOfCurrentParagraph = Position(&textNode, offsetOfNextNewLine + 1); 306 306 } 307 addItem(ManipulationItemData { startOfCurrentParagraph, endOfCurrentParagraph, nullptr, nullQName(), WTFMove(tokensInCurrentParagraph) });307 addItem(ManipulationItemData { startOfCurrentParagraph, endOfCurrentParagraph, nullptr, nullQName(), std::exchange(tokensInCurrentParagraph, { }) }); 308 308 startOfCurrentParagraph.clear(); 309 309 }
Note:
See TracChangeset
for help on using the changeset viewer.