From 699e1fdc07e69419f17faa191930b5d604a9640b Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Tue, 8 Sep 2020 13:17:37 +0430 Subject: LibJS: Eliminate some (unnecessary) Vector copies --- Libraries/LibJS/Console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibJS/Console.cpp') diff --git a/Libraries/LibJS/Console.cpp b/Libraries/LibJS/Console.cpp index 5033ed25c9..cd40739ebc 100644 --- a/Libraries/LibJS/Console.cpp +++ b/Libraries/LibJS/Console.cpp @@ -123,7 +123,7 @@ bool Console::counter_reset(String label) Vector ConsoleClient::get_trace() const { Vector trace; - auto call_stack = m_console.interpreter().call_stack(); + auto& call_stack = m_console.interpreter().call_stack(); // -2 to skip the console.trace() call frame for (ssize_t i = call_stack.size() - 2; i >= 0; --i) trace.append(call_stack[i].function_name); -- cgit v1.2.3