Fix build.
cpplint errors.
Change-Id: I11141f6e19b56a3f53d6e52f3013f4d20f33f102
diff --git a/compiler/dex/frontend.cc b/compiler/dex/frontend.cc
index b6e062e..e53d636 100644
--- a/compiler/dex/frontend.cc
+++ b/compiler/dex/frontend.cc
@@ -64,8 +64,7 @@
}
QuickCompilerContext::QuickCompilerContext(CompilerDriver& compiler)
- : inliner_map_(new DexFileToMethodInlinerMap(&compiler))
-{
+ : inliner_map_(new DexFileToMethodInlinerMap(&compiler)) {
}
QuickCompilerContext::~QuickCompilerContext() {
diff --git a/compiler/dex/frontend.h b/compiler/dex/frontend.h
index b6e8577..4a863f5 100644
--- a/compiler/dex/frontend.h
+++ b/compiler/dex/frontend.h
@@ -115,7 +115,7 @@
class QuickCompilerContext {
public:
- QuickCompilerContext(CompilerDriver& compiler);
+ explicit QuickCompilerContext(CompilerDriver& compiler);
~QuickCompilerContext();
DexFileToMethodInlinerMap* GetInlinerMap() {
diff --git a/compiler/dex/quick/dex_file_method_inliner.cc b/compiler/dex/quick/dex_file_method_inliner.cc
index c962e9d..4d3e3da 100644
--- a/compiler/dex/quick/dex_file_method_inliner.cc
+++ b/compiler/dex/quick/dex_file_method_inliner.cc
@@ -157,8 +157,7 @@
}
DexFileMethodInliner::DexFileMethodInliner()
- : dex_file_(NULL)
-{
+ : dex_file_(NULL) {
COMPILE_ASSERT(kClassCacheFirst == 0, kClassCacheFirst_not_0);
COMPILE_ASSERT(arraysize(kClassCacheNames) == kClassCacheLast, bad_arraysize_kClassCacheNames);
COMPILE_ASSERT(kNameCacheFirst == 0, kNameCacheFirst_not_0);
diff --git a/compiler/dex/quick/dex_file_to_method_inliner_map.cc b/compiler/dex/quick/dex_file_to_method_inliner_map.cc
index 38022d2..56a42bc 100644
--- a/compiler/dex/quick/dex_file_to_method_inliner_map.cc
+++ b/compiler/dex/quick/dex_file_to_method_inliner_map.cc
@@ -32,8 +32,7 @@
DexFileToMethodInlinerMap::DexFileToMethodInlinerMap(const CompilerDriver* compiler)
: compiler_(compiler),
- mutex_("inline_helper_mutex")
-{
+ mutex_("inline_helper_mutex") {
}
DexFileToMethodInlinerMap::~DexFileToMethodInlinerMap() {
diff --git a/compiler/dex/quick/dex_file_to_method_inliner_map.h b/compiler/dex/quick/dex_file_to_method_inliner_map.h
index e0b67e5..77f2648 100644
--- a/compiler/dex/quick/dex_file_to_method_inliner_map.h
+++ b/compiler/dex/quick/dex_file_to_method_inliner_map.h
@@ -37,7 +37,7 @@
*/
class DexFileToMethodInlinerMap {
public:
- DexFileToMethodInlinerMap(const CompilerDriver* compiler);
+ explicit DexFileToMethodInlinerMap(const CompilerDriver* compiler);
~DexFileToMethodInlinerMap();
const DexFileMethodInliner& GetMethodInliner(const DexFile* dex_file) LOCKS_EXCLUDED(mutex_);
@@ -50,4 +50,4 @@
} // namespace art
-#endif // ART_COMPILER_DEX_QUICK_DEX_FILE_TO_METHOD_INLINER_MAP_H_
+#endif // ART_COMPILER_DEX_QUICK_DEX_FILE_TO_METHOD_INLINER_MAP_H_