mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Change style of break statements with a block
This commit is contained in:
@@ -226,8 +226,7 @@ class DispatchDataConverter : DefaultDataConverter {
|
|||||||
// case, then we can probably reuse
|
// case, then we can probably reuse
|
||||||
// `audioMasterSizeWindow`.
|
// `audioMasterSizeWindow`.
|
||||||
*static_cast<VstRect**>(data) = ▭
|
*static_cast<VstRect**>(data) = ▭
|
||||||
break;
|
} break;
|
||||||
}
|
|
||||||
case effGetChunk: {
|
case effGetChunk: {
|
||||||
// Write the chunk data to some publically accessible place in
|
// Write the chunk data to some publically accessible place in
|
||||||
// `HostBridge` and write a pointer to that struct to the data
|
// `HostBridge` and write a pointer to that struct to the data
|
||||||
@@ -237,8 +236,7 @@ class DispatchDataConverter : DefaultDataConverter {
|
|||||||
chunk.assign(buffer.begin(), buffer.end());
|
chunk.assign(buffer.begin(), buffer.end());
|
||||||
|
|
||||||
*static_cast<void**>(data) = chunk.data();
|
*static_cast<void**>(data) = chunk.data();
|
||||||
break;
|
} break;
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
DefaultDataConverter::write(opcode, data, response);
|
DefaultDataConverter::write(opcode, data, response);
|
||||||
break;
|
break;
|
||||||
@@ -317,8 +315,7 @@ intptr_t HostBridge::dispatch(AEffect* /*plugin*/,
|
|||||||
delete this;
|
delete this;
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
break;
|
}; break;
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Maybe reuse buffers here when dealing with chunk data
|
// TODO: Maybe reuse buffers here when dealing with chunk data
|
||||||
|
|||||||
@@ -221,8 +221,7 @@ intptr_t PluginBridge::dispatch_wrapper(AEffect* plugin,
|
|||||||
|
|
||||||
return plugin->dispatcher(plugin, opcode, index, value, data,
|
return plugin->dispatcher(plugin, opcode, index, value, data,
|
||||||
option);
|
option);
|
||||||
break;
|
} break;
|
||||||
}
|
|
||||||
case effEditOpen: {
|
case effEditOpen: {
|
||||||
const auto win32_handle = editor.open();
|
const auto win32_handle = editor.open();
|
||||||
|
|
||||||
@@ -239,8 +238,7 @@ intptr_t PluginBridge::dispatch_wrapper(AEffect* plugin,
|
|||||||
editor.embed_into(x11_handle);
|
editor.embed_into(x11_handle);
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
break;
|
} break;
|
||||||
}
|
|
||||||
case effEditClose: {
|
case effEditClose: {
|
||||||
const intptr_t return_value =
|
const intptr_t return_value =
|
||||||
plugin->dispatcher(plugin, opcode, index, value, data, option);
|
plugin->dispatcher(plugin, opcode, index, value, data, option);
|
||||||
@@ -248,8 +246,7 @@ intptr_t PluginBridge::dispatch_wrapper(AEffect* plugin,
|
|||||||
editor.close();
|
editor.close();
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
break;
|
} break;
|
||||||
}
|
|
||||||
case effEditGetRect: {
|
case effEditGetRect: {
|
||||||
const intptr_t return_value =
|
const intptr_t return_value =
|
||||||
plugin->dispatcher(plugin, opcode, index, value, data, option);
|
plugin->dispatcher(plugin, opcode, index, value, data, option);
|
||||||
@@ -260,7 +257,7 @@ intptr_t PluginBridge::dispatch_wrapper(AEffect* plugin,
|
|||||||
editor.resize(size);
|
editor.resize(size);
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
} break;
|
||||||
default:
|
default:
|
||||||
return plugin->dispatcher(plugin, opcode, index, value, data,
|
return plugin->dispatcher(plugin, opcode, index, value, data,
|
||||||
option);
|
option);
|
||||||
|
|||||||
Reference in New Issue
Block a user