update_engine: fixed warnings from cpplint
Fixed all the cpplint warnings in update engine.
BUG=None
TEST=Unit tests still pass.
Change-Id: I285ae858eec8abe0b26ff203b99a42a200ceb71c
Reviewed-on: https://chromium-review.googlesource.com/204027
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
diff --git a/subprocess.cc b/subprocess.cc
index 5274655..f2ac17d 100644
--- a/subprocess.cc
+++ b/subprocess.cc
@@ -109,7 +109,7 @@
class ScopedFreeArgPointer {
public:
- ScopedFreeArgPointer(char** arr) : arr_(arr) {}
+ explicit ScopedFreeArgPointer(char** arr) : arr_(arr) {}
~ScopedFreeArgPointer() {
if (!arr_)
return;
@@ -121,7 +121,7 @@
char** arr_;
DISALLOW_COPY_AND_ASSIGN(ScopedFreeArgPointer);
};
-} // namespace {}
+} // namespace
uint32_t Subprocess::Exec(const vector<string>& cmd,
ExecCallback callback,