From 2288279e57f8cb3297bfbfeaa63cf2893c42c99a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 22 Sep 2020 22:17:09 +0200 Subject: [PATCH] No-OP: prefer constants from API header --- gtk2_ardour/vst3_hwnd_plugin_ui.cc | 2 +- gtk2_ardour/vst3_nsview_plugin_ui.mm | 2 +- gtk2_ardour/vst3_x11_plugin_ui.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/vst3_hwnd_plugin_ui.cc b/gtk2_ardour/vst3_hwnd_plugin_ui.cc index 01653d84d3..f711541b55 100644 --- a/gtk2_ardour/vst3_hwnd_plugin_ui.cc +++ b/gtk2_ardour/vst3_hwnd_plugin_ui.cc @@ -62,7 +62,7 @@ VST3HWNDPluginUI::view_realized () IPlugView* view = _vst3->view (); HWND hwnd = (HWND) gdk_win32_drawable_get_handle (GTK_WIDGET(_gui_widget.gobj())->window); // SetWindowLongPtr (hwnd, GWLP_USERDATA, (__int3264) (LONG_PTR)this); - if (kResultOk != view->attached (reinterpret_cast (hwnd), "HWND")) { + if (kResultOk != view->attached (reinterpret_cast (hwnd), Steinberg::kPlatformTypeHWND)) { assert (0); } diff --git a/gtk2_ardour/vst3_nsview_plugin_ui.mm b/gtk2_ardour/vst3_nsview_plugin_ui.mm index 8771026bc1..9f77d2fe34 100644 --- a/gtk2_ardour/vst3_nsview_plugin_ui.mm +++ b/gtk2_ardour/vst3_nsview_plugin_ui.mm @@ -76,7 +76,7 @@ VST3NSViewPluginUI::VST3NSViewPluginUI (boost::shared_ptr pi, boos return; } - if (kResultOk != view->attached (reinterpret_cast (_ns_view), "NSView")) { + if (kResultOk != view->attached (reinterpret_cast (_ns_view), Steinberg::kPlatformTypeNSView)) { printf ("FAILED TO ATTACH..\n"); } diff --git a/gtk2_ardour/vst3_x11_plugin_ui.cc b/gtk2_ardour/vst3_x11_plugin_ui.cc index 2909767777..a926c864dd 100644 --- a/gtk2_ardour/vst3_x11_plugin_ui.cc +++ b/gtk2_ardour/vst3_x11_plugin_ui.cc @@ -200,7 +200,7 @@ VST3X11PluginUI::view_realized () return; } Window window = _gui_widget.get_id (); - if (kResultOk != view->attached (reinterpret_cast (window), "X11EmbedWindowID")) { + if (kResultOk != view->attached (reinterpret_cast (window), Steinberg::kPlatformTypeX11EmbedWindowID)) { assert (0); } #if 0