From 0523a06ed717ef7520556ab6921a9787527be700 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 26 Jul 2021 13:51:40 +0200 Subject: [PATCH] Move the win32 window class name to a constant --- src/wine-host/editor.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index 2f281e73..7cbf4fa9 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -40,6 +40,12 @@ using namespace std::literals::string_literals; } \ } while (0) +/** + * The name of the Win32 window class we'll use for the Win32 window that the + * plugin can embed itself in. + */ +constexpr char window_class_name[] = "yabridge plugin"; + /** * The Win32 timer ID we'll use to periodically call the VST2 `effeditidle` * function with. We have to do this on a timer because the function has to be @@ -1231,7 +1237,7 @@ ATOM get_window_class() noexcept { window_class.lpfnWndProc = window_proc; window_class.hInstance = GetModuleHandle(nullptr); window_class.hCursor = arrow_cursor; - window_class.lpszClassName = "yabridge plugin"; + window_class.lpszClassName = window_class_name; window_class_handle = RegisterClassEx(&window_class); }