mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Make the resize function not-noexcept
Since technically the string allocations within the logging for `fix_local_coordinates()` can throw.
This commit is contained in:
@@ -447,7 +447,7 @@ Editor::Editor(MainContext& main_context,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Editor::resize(uint16_t width, uint16_t height) noexcept {
|
void Editor::resize(uint16_t width, uint16_t height) {
|
||||||
logger.log_editor_trace([&]() {
|
logger.log_editor_trace([&]() {
|
||||||
return "DEBUG: Resizing wrapper window to " + std::to_string(width) +
|
return "DEBUG: Resizing wrapper window to " + std::to_string(width) +
|
||||||
"x" + std::to_string(height);
|
"x" + std::to_string(height);
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ class Editor {
|
|||||||
* this whenever the plugin requests a resize, or when the host resizes the
|
* this whenever the plugin requests a resize, or when the host resizes the
|
||||||
* window (using the plugin API). Before yabridge 3.5.0 this was implicit.
|
* window (using the plugin API). Before yabridge 3.5.0 this was implicit.
|
||||||
*/
|
*/
|
||||||
void resize(uint16_t width, uint16_t height) noexcept;
|
void resize(uint16_t width, uint16_t height);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle X11 events sent to the window our editor is embedded in.
|
* Handle X11 events sent to the window our editor is embedded in.
|
||||||
|
|||||||
Reference in New Issue
Block a user