From 9ac597a6fd6b13f15361271182f9d52382e0912d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 16 Aug 2021 21:07:03 +0200 Subject: [PATCH] Make the resize function not-noexcept Since technically the string allocations within the logging for `fix_local_coordinates()` can throw. --- src/wine-host/editor.cpp | 2 +- src/wine-host/editor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index f0066bef..b046d899 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -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([&]() { return "DEBUG: Resizing wrapper window to " + std::to_string(width) + "x" + std::to_string(height); diff --git a/src/wine-host/editor.h b/src/wine-host/editor.h index a5c4e751..daa55cfb 100644 --- a/src/wine-host/editor.h +++ b/src/wine-host/editor.h @@ -204,7 +204,7 @@ class Editor { * 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. */ - 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.