Some manual change to for-ranged loop.
Use "const auto&" where possible.
This commit is contained in:
parent
2717b96310
commit
4ac4dacffe
8 changed files with 9 additions and 8 deletions
|
@ -132,7 +132,7 @@ void AtomRenderViewObserver::DraggableRegionsChanged(blink::WebFrame* frame) {
|
|||
blink::WebVector<blink::WebDraggableRegion> webregions =
|
||||
frame->document().draggableRegions();
|
||||
std::vector<DraggableRegion> regions;
|
||||
for (auto& webregion : webregions) {
|
||||
for (const auto& webregion : webregions) {
|
||||
DraggableRegion region;
|
||||
region.bounds = webregion.bounds;
|
||||
region.draggable = webregion.draggable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue