diff --git a/src/common/logging.cpp b/src/common/logging.cpp index 34cc3523..1bd95081 100644 --- a/src/common/logging.cpp +++ b/src/common/logging.cpp @@ -135,7 +135,7 @@ void Logger::log_event(bool is_dispatch, int opcode, int index, intptr_t value, - EventPayload payload, + const EventPayload& payload, float option) { if (BOOST_UNLIKELY(verbosity >= Verbosity::events)) { std::ostringstream message; diff --git a/src/common/logging.h b/src/common/logging.h index 22903654..79aef611 100644 --- a/src/common/logging.h +++ b/src/common/logging.h @@ -90,12 +90,11 @@ class Logger { void log_set_parameter_response(); // If is_dispatch is true, then use opcode names from the plugin's dispatch // function. Otherwise use names for the host callback function opcodes. - // TODO: Cosnt references for both payloads void log_event(bool is_dispatch, int opcode, int index, intptr_t value, - EventPayload payload, + const EventPayload& payload, float option); void log_event_response(bool is_dispatch, intptr_t return_value,