Use const references for logging paylaod data

This commit is contained in:
Robbert van der Helm
2020-03-11 15:54:40 +01:00
parent 1ee0ffef8b
commit 8c187e3ca5
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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;
+1 -2
View File
@@ -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,