13
0

No-OP: prefer constants from API header

This commit is contained in:
Robin Gareus 2020-09-22 22:17:09 +02:00
parent 2b139ead8d
commit 2288279e57
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 3 additions and 3 deletions

View File

@ -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<void*> (hwnd), "HWND")) {
if (kResultOk != view->attached (reinterpret_cast<void*> (hwnd), Steinberg::kPlatformTypeHWND)) {
assert (0);
}

View File

@ -76,7 +76,7 @@ VST3NSViewPluginUI::VST3NSViewPluginUI (boost::shared_ptr<PluginInsert> pi, boos
return;
}
if (kResultOk != view->attached (reinterpret_cast<void*> (_ns_view), "NSView")) {
if (kResultOk != view->attached (reinterpret_cast<void*> (_ns_view), Steinberg::kPlatformTypeNSView)) {
printf ("FAILED TO ATTACH..\n");
}

View File

@ -200,7 +200,7 @@ VST3X11PluginUI::view_realized ()
return;
}
Window window = _gui_widget.get_id ();
if (kResultOk != view->attached (reinterpret_cast<void*> (window), "X11EmbedWindowID")) {
if (kResultOk != view->attached (reinterpret_cast<void*> (window), Steinberg::kPlatformTypeX11EmbedWindowID)) {
assert (0);
}
#if 0