summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2012-03-01 13:24:17 +0800
committer Shih-wei Liao <sliao@google.com> 2012-03-01 11:50:30 -0800
commitbfe4ea4463848ccb91e0848d35d79539d52c627a (patch)
tree7e96875639c7248ea1ae3007a0ad9c947b803d3e /src
parent4eb953f49e9febf908bd57a559e4894dd1867ac9 (diff)
Code cleanup
Cleanup some code to follow the coding convention, such as changing "T const*" to "const T*". Change-Id: I1a96f17a86b7bfafea2474834d6a1eaaa5a834f6
Diffstat (limited to 'src')
-rw-r--r--src/oat_compilation_unit.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/oat_compilation_unit.h b/src/oat_compilation_unit.h
index b05bfe1d5e..b21a5b0ecd 100644
--- a/src/oat_compilation_unit.h
+++ b/src/oat_compilation_unit.h
@@ -30,9 +30,9 @@ class DexCache;
class OatCompilationUnit {
public:
- OatCompilationUnit(ClassLoader const* class_loader, ClassLinker* class_linker,
- DexFile const& dex_file, DexCache& dex_cache,
- DexFile::CodeItem const* code_item,
+ OatCompilationUnit(const ClassLoader* class_loader, ClassLinker* class_linker,
+ const DexFile& dex_file, DexCache& dex_cache,
+ const DexFile::CodeItem* code_item,
uint32_t method_idx, uint32_t access_flags)
: class_loader_(class_loader), class_linker_(class_linker),
dex_file_(&dex_file), dex_cache_(&dex_cache), code_item_(code_item),
@@ -40,29 +40,30 @@ class OatCompilationUnit {
}
OatCompilationUnit* GetCallee(uint32_t callee_method_idx,
- uint32_t callee_access_flags) {
- return new OatCompilationUnit(class_loader_, class_linker_, *dex_file_, *dex_cache_,
- NULL, callee_method_idx, callee_access_flags);
+ uint32_t callee_access_flags) {
+ return new OatCompilationUnit(class_loader_, class_linker_, *dex_file_,
+ *dex_cache_, NULL, callee_method_idx,
+ callee_access_flags);
}
- char const* GetShorty() const {
- DexFile::MethodId const& method_id = dex_file_->GetMethodId(method_idx_);
+ const char* GetShorty() const {
+ const DexFile::MethodId& method_id = dex_file_->GetMethodId(method_idx_);
return dex_file_->GetMethodShorty(method_id);
}
- char const* GetShorty(uint32_t* shorty_len) const {
- DexFile::MethodId const& method_id = dex_file_->GetMethodId(method_idx_);
+ const char* GetShorty(uint32_t* shorty_len) const {
+ const DexFile::MethodId& method_id = dex_file_->GetMethodId(method_idx_);
return dex_file_->GetMethodShorty(method_id, shorty_len);
}
public:
- ClassLoader const* class_loader_;
+ const ClassLoader* class_loader_;
ClassLinker* class_linker_;
- DexFile const* dex_file_;
+ const DexFile* dex_file_;
DexCache* dex_cache_;
- DexFile::CodeItem const* code_item_;
+ const DexFile::CodeItem* code_item_;
uint32_t method_idx_;
uint32_t access_flags_;
};