VaJDA: a bit of a cleanup
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/1100001Reviewed-by:Miguel Casas <mcasas@chromium.org> Commit-Queue: Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#567839}
Showing
Please register or sign in to comment