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

Issue 1809943005: Fix pessimizing move in SamplePictFile (Closed)

Created:
4 years, 9 months ago by f(malita)
Modified:
4 years, 9 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix pessimizing move in SamplePictFile ../../samplecode/SamplePictFile.cpp:194:20: error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move] return std::move(pic); ^ R=reed@google.com,mtklein@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1809943005 Committed: https://skia.googlesource.com/skia/+/3e33e6f57685beeb7f5449aee8694d539e4c5a6f

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M samplecode/SamplePictFile.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
f(malita)
Interesting that we don't hit this on the bots. Do we not have -Wpessimizing-move turned ...
4 years, 9 months ago (2016-03-18 17:45:44 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809943005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809943005/1
4 years, 9 months ago (2016-03-18 17:45:50 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 9 months ago (2016-03-18 17:45:51 UTC) #5
mtklein
lgtm Boy I wish we didn't also have to think about RVO / NRVO when ...
4 years, 9 months ago (2016-03-18 18:05:42 UTC) #6
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 18:07:53 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/3e33e6f57685beeb7f5449aee8694d539e4c5a6f

Powered by Google App Engine
This is Rietveld 408576698