mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Use const references for logging paylaod data
This commit is contained in:
@@ -135,7 +135,7 @@ void Logger::log_event(bool is_dispatch,
|
|||||||
int opcode,
|
int opcode,
|
||||||
int index,
|
int index,
|
||||||
intptr_t value,
|
intptr_t value,
|
||||||
EventPayload payload,
|
const EventPayload& payload,
|
||||||
float option) {
|
float option) {
|
||||||
if (BOOST_UNLIKELY(verbosity >= Verbosity::events)) {
|
if (BOOST_UNLIKELY(verbosity >= Verbosity::events)) {
|
||||||
std::ostringstream message;
|
std::ostringstream message;
|
||||||
|
|||||||
@@ -90,12 +90,11 @@ class Logger {
|
|||||||
void log_set_parameter_response();
|
void log_set_parameter_response();
|
||||||
// If is_dispatch is true, then use opcode names from the plugin's dispatch
|
// If is_dispatch is true, then use opcode names from the plugin's dispatch
|
||||||
// function. Otherwise use names for the host callback function opcodes.
|
// function. Otherwise use names for the host callback function opcodes.
|
||||||
// TODO: Cosnt references for both payloads
|
|
||||||
void log_event(bool is_dispatch,
|
void log_event(bool is_dispatch,
|
||||||
int opcode,
|
int opcode,
|
||||||
int index,
|
int index,
|
||||||
intptr_t value,
|
intptr_t value,
|
||||||
EventPayload payload,
|
const EventPayload& payload,
|
||||||
float option);
|
float option);
|
||||||
void log_event_response(bool is_dispatch,
|
void log_event_response(bool is_dispatch,
|
||||||
intptr_t return_value,
|
intptr_t return_value,
|
||||||
|
|||||||
Reference in New Issue
Block a user