forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A couple of cleanups I stumbled upon while reading the code: - struct DecodeRequest can be made internal. - unique_ptr<> doesn't need to be made const& (strange pattern). - A few consts and initializing structs with = {} (ISO memset), using implicit initialization [1]. - Removed unnecessary |weak_this_|. All in all, less lines of code :-) TBR=dcastagna@chromium.org [1] http://en.cppreference.com/w/c/language/struct_initialization Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: If1a4e781abfa7ae96b85a6d621f5c96d4effb162 Reviewed-on: https://chromium-review.googlesource.com/1100001 Reviewed-by: Miguel Casas <mcasas@chromium.org> Commit-Queue: Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#567839}
- Loading branch information
1 parent
074de24
commit 2c1c1bd
Showing
3 changed files
with
50 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters