From 955724179c6c739524f610023287f56b24dc31de Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 13 Dec 2011 18:14:20 -0800 Subject: Don't default-construct std::strings and then assign them. Change-Id: I8c994d1e6a8d2ebe52eaa4f0132e0deb2ecfa5f3 --- src/compiler/codegen/arm/ArchUtility.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/compiler/codegen/arm/ArchUtility.cc') 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) { -- cgit v1.2.3-59-g8ed1b