OSDN Git Service

Fix clang-tidy warnings in iotop.
authorChih-Hung Hsieh <chh@google.com>
Tue, 2 Aug 2016 18:19:23 +0000 (11:19 -0700)
committerChih-Hung Hsieh <chh@google.com>
Tue, 2 Aug 2016 18:19:23 +0000 (11:19 -0700)
commit906538079b8c4f08794a6fd3fd55ca1e35a24877
tree4139cd3ffae5edbe99da48397f50b3da94006ebb
parent52e9f95751fa0d5b1e780e0899c1acf1814f8b6c
Fix clang-tidy warnings in iotop.

* Declare explicit conversion constructors.
* Use const reference type for parameter to avoid unnecessary copy.

Bug: 28341362
Bug: 30407689
Change-Id: Ia95a041125703ecbfac128709fd6ea0591df2103
Test: build with WITH_TIDY=1
iotop/iotop.cpp
iotop/tasklist.cpp
iotop/taskstats.h