Skip to content

Commit 121c53d

Browse files
xusheng6claude
andcommitted
emulator: drop redundant string wrap around GetShortName
Addresses review feedback: Symbol::GetShortName already returns a std::string, so the explicit std::string(...) construction is redundant. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6143af0 commit 121c53d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/emulator/core/llilemulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2227,7 +2227,7 @@ std::string LLILEmulator::ResolveCallTargetName(uint64_t addr)
22272227
BNSymbolType type = sym->GetType();
22282228
if (type == ImportedFunctionSymbol || type == FunctionSymbol
22292229
|| type == LibraryFunctionSymbol || type == ExternalSymbol)
2230-
return std::string(sym->GetShortName());
2230+
return sym->GetShortName();
22312231

22322232
return "";
22332233
}

0 commit comments

Comments
 (0)