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:
Robbert van der Helm
2021-08-16 21:07:03 +02:00
parent d46f7882bd
commit 9ac597a6fd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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.