diff options
author | 2015-09-12 16:04:42 -0700 | |
---|---|---|
committer | 2015-09-12 16:06:02 -0700 | |
commit | 68cad90bf51337af0a6b3c0522a218ea5e3ecf43 (patch) | |
tree | 056a8ae56040f2d88e08d35bde7faf6fbc032a82 | |
parent | b09f33381174843214de40533366e162a0c6d768 (diff) |
Remove unnecessary std::move from variant_map.h
This triggers Clang's pessimizing-move warning.
Change-Id: Icb33643f28d1d159a87a17235c4d210209199dac
-rw-r--r-- | runtime/base/variant_map.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/base/variant_map.h b/runtime/base/variant_map.h index 1d7596aee3..82e5d2e21b 100644 --- a/runtime/base/variant_map.h +++ b/runtime/base/variant_map.h @@ -257,8 +257,7 @@ struct VariantMap { if (ptr != nullptr) { return std::move(*ptr); } else { - TValue default_value = key.CreateDefaultValue(); - return std::move(default_value); + return key.CreateDefaultValue(); } } |