Cleanup: Avoid extraneous increment and decrement of reference count of ScriptArgumen...
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jul 2015 23:11:05 +0000 (23:11 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jul 2015 23:11:05 +0000 (23:11 +0000)
commit32ea876288867beb1600c3f6a773caaa4db5575c
treeab871110106b2fc062b762143fc20faff295afdd
parentfa072ca464ec103b5c199451a8e5104089d730b3
Cleanup: Avoid extraneous increment and decrement of reference count of ScriptArguments in ConsoleClient
https://bugs.webkit.org/show_bug.cgi?id=146920

Reviewed by Brian Burg.

Remove local variable RefPtr<ScriptArguments> and copy constructor call with an argument that
was initialized with an rvalue reference. The argument itself is an lvalue reference.

* runtime/ConsoleClient.cpp:
(JSC::ConsoleClient::printConsoleMessageWithArguments):
(JSC::ConsoleClient::internalMessageWithTypeAndLevel):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186794 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/ConsoleClient.cpp