diff options
author | 2011-12-13 18:14:20 -0800 | |
---|---|---|
committer | 2011-12-13 18:14:20 -0800 | |
commit | 955724179c6c739524f610023287f56b24dc31de (patch) | |
tree | 64f751693e72173ae0d044d8c54989b01f1195af /src/compiler/codegen/arm/ArchUtility.cc | |
parent | b87f73ea7524f6eb9da6da1af931a3d3fbb833ff (diff) |
Don't default-construct std::strings and then assign them.
Change-Id: I8c994d1e6a8d2ebe52eaa4f0132e0deb2ecfa5f3
Diffstat (limited to 'src/compiler/codegen/arm/ArchUtility.cc')
-rw-r--r-- | src/compiler/codegen/arm/ArchUtility.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/compiler/codegen/arm/ArchUtility.cc b/src/compiler/codegen/arm/ArchUtility.cc index b702682308..52fb018a1e 100644 --- a/src/compiler/codegen/arm/ArchUtility.cc +++ b/src/compiler/codegen/arm/ArchUtility.cc @@ -449,10 +449,9 @@ void oatCodegenDump(CompilationUnit* cUnit) const art::DexFile::MethodId& method_id = cUnit->dex_file->GetMethodId(cUnit->method_idx); - std::string signature = cUnit->dex_file->GetMethodSignature(method_id); - std::string name = cUnit->dex_file->GetMethodName(method_id); - std::string descriptor = - cUnit->dex_file->GetMethodDeclaringClassDescriptor(method_id); + std::string signature(cUnit->dex_file->GetMethodSignature(method_id)); + std::string name(cUnit->dex_file->GetMethodName(method_id)); + std::string descriptor(cUnit->dex_file->GetMethodDeclaringClassDescriptor(method_id)); // Dump mapping table if (cUnit->mappingTable.size() > 0) { |