Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Issue 1552613003: Remove needless move() calls in cloud_print/gcp20 (Closed)

Created:
4 years, 11 months ago by Nico
Modified:
4 years, 11 months ago
CC:
chromium-reviews, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove needless move() calls in cloud_print/gcp20 After https://codereview.chromium.org/1553493002/, the compiler can inform us that these are not needed and in fact harmful: ..\..\cloud_print\gcp20\prototype\privet_http_server.cc(418,10) : error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move] return std::move(response); ^ ..\..\cloud_print\gcp20\prototype\privet_http_server.cc(418,10) : note: remove std::move call here return std::move(response); ^~~~~~~~~~ ..\..\cloud_print\gcp20\prototype\cloud_print_url_request_context_getter.cc(30,16) : error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move] context_ = std::move(builder.Build()); ^ ..\..\cloud_print\gcp20\prototype\cloud_print_url_request_context_getter.cc(30,16) : note: remove std::move call here context_ = std::move(builder.Build()); ^~~~~~~~~~ ~ BUG=82385 TBR=vitalybuka Committed: https://crrev.com/c95337d638df3289758257448a90556e9fcdd071 Cr-Commit-Position: refs/heads/master@{#367067}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M cloud_print/gcp20/prototype/cloud_print_request.cc View 1 chunk +1 line, -1 line 0 comments Download
M cloud_print/gcp20/prototype/cloud_print_url_request_context_getter.cc View 1 chunk +1 line, -1 line 0 comments Download
M cloud_print/gcp20/prototype/privet_http_server.cc View 7 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (4 generated)
Nico
This target doesn't seem to be depended by anything from what I can tell -- ...
4 years, 11 months ago (2015-12-29 14:19:57 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552613003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552613003/1
4 years, 11 months ago (2015-12-29 14:20:46 UTC) #5
commit-bot: I haz the power
4 years, 11 months ago (2015-12-29 14:32:56 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c95337d638df3289758257448a90556e9fcdd071
Cr-Commit-Position: refs/heads/master@{#367067}

Powered by Google App Engine
This is Rietveld 408576698