Skip to content

Commit

Permalink
Use %1 and argument for string building, to minimize performance impa…
Browse files Browse the repository at this point in the history
…ct of Trace in normal mode
  • Loading branch information
JoergAtGithub committed May 25, 2022
1 parent 0d38845 commit ed819cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/scripting/legacy/scriptconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "util/trace.h"

void ScriptConnection::executeCallback(double value) const {
Trace executeCallbackTrace(QString("JS " + key.item + " callback").toStdString().c_str());
Trace executeCallbackTrace("JS %1 callback", key.item);
const auto args = QJSValueList{
value,
key.group,
Expand Down

0 comments on commit ed819cb

Please sign in to comment.