Commit 6e04c725 authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

Remove -Wno-return-std-move flag


Bug: 832211
Change-Id: I9dbfdb0c49aa10f6655454e0d9958f869454f31c
Reviewed-on: https://chromium-review.googlesource.com/1025435Reviewed-by: default avatarGreg Thompson <grt@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Reviewed-by: default avatarVadym Doroshenko <dvadym@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553510}
parent 944adf7f
...@@ -1407,9 +1407,6 @@ config("default_warnings") { ...@@ -1407,9 +1407,6 @@ config("default_warnings") {
# Ignore warnings about MSVC optimization pragmas. # Ignore warnings about MSVC optimization pragmas.
# TODO(thakis): Only for no_chromium_code? http://crbug.com/505314 # TODO(thakis): Only for no_chromium_code? http://crbug.com/505314
"-Wno-ignored-pragma-optimize", "-Wno-ignored-pragma-optimize",
# TODO(thakis): Enable, https://crbug.com/832211
"-Wno-return-std-move",
] ]
} else if (use_xcode_clang) { } else if (use_xcode_clang) {
cflags += [ cflags += [
......
...@@ -182,7 +182,7 @@ PasswordReuseDetector::FindFirstSavedPassword(const base::string16& input) { ...@@ -182,7 +182,7 @@ PasswordReuseDetector::FindFirstSavedPassword(const base::string16& input) {
return passwords_.end(); return passwords_.end();
// lower_bound returns the first key that is bigger or equal to input. // lower_bound returns the first key that is bigger or equal to input.
auto it = passwords_.lower_bound(input); passwords_iterator it = passwords_.lower_bound(input);
if (it != passwords_.end() && it->first == input) { if (it != passwords_.end() && it->first == input) {
// If the key is equal then a saved password is found. // If the key is equal then a saved password is found.
return it; return it;
......
...@@ -251,7 +251,7 @@ TEST(EquivalenceMapTest, PruneEquivalencesAndSortBySource) { ...@@ -251,7 +251,7 @@ TEST(EquivalenceMapTest, PruneEquivalencesAndSortBySource) {
auto PruneEquivalencesAndSortBySourceTest = auto PruneEquivalencesAndSortBySourceTest =
[](std::vector<Equivalence>&& equivalences) { [](std::vector<Equivalence>&& equivalences) {
OffsetMapper::PruneEquivalencesAndSortBySource(&equivalences); OffsetMapper::PruneEquivalencesAndSortBySource(&equivalences);
return equivalences; return std::move(equivalences);
}; };
EXPECT_EQ(std::vector<Equivalence>(), EXPECT_EQ(std::vector<Equivalence>(),
......
...@@ -255,13 +255,13 @@ scoped_refptr<StaticBitmapImage> GetImageWithAlphaDisposition( ...@@ -255,13 +255,13 @@ scoped_refptr<StaticBitmapImage> GetImageWithAlphaDisposition(
AlphaDisposition alpha_disposition) { AlphaDisposition alpha_disposition) {
DCHECK(alpha_disposition != kDontChangeAlpha); DCHECK(alpha_disposition != kDontChangeAlpha);
if (alpha_disposition == kDontChangeAlpha) if (alpha_disposition == kDontChangeAlpha)
return image; return std::move(image);
SkAlphaType alpha_type = (alpha_disposition == kPremultiplyAlpha) SkAlphaType alpha_type = (alpha_disposition == kPremultiplyAlpha)
? kPremul_SkAlphaType ? kPremul_SkAlphaType
: kUnpremul_SkAlphaType; : kUnpremul_SkAlphaType;
sk_sp<SkImage> skia_image = image->PaintImageForCurrentFrame().GetSkImage(); sk_sp<SkImage> skia_image = image->PaintImageForCurrentFrame().GetSkImage();
if (skia_image->alphaType() == alpha_type) if (skia_image->alphaType() == alpha_type)
return image; return std::move(image);
// Premul/unpremul are performed in gamma-corrected space, using arithmetic // Premul/unpremul are performed in gamma-corrected space, using arithmetic
// that assumes linear space. It is an incorrect implementation that has // that assumes linear space. It is an incorrect implementation that has
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment