Browse Source

Fixed a compiler warning

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
230588cbf9
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

+ 4
- 4
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -1331,10 +1331,10 @@ public:
void detachHostWindow() void detachHostWindow()
{ {
#if JUCE_MAC #if JUCE_MAC
if (hostWindow != 0)
if (hostWindow != nullptr)
{ {
detachComponentFromWindowRefVST (this, hostWindow, wrapper.useNSView); detachComponentFromWindowRefVST (this, hostWindow, wrapper.useNSView);
hostWindow = 0;
hostWindow = nullptr;
} }
#endif #endif
@@ -1346,7 +1346,7 @@ public:
void checkVisibility() void checkVisibility()
{ {
#if JUCE_MAC #if JUCE_MAC
if (hostWindow != 0)
if (hostWindow != nullptr)
checkWindowVisibilityVST (hostWindow, this, wrapper.useNSView); checkWindowVisibilityVST (hostWindow, this, wrapper.useNSView);
#endif #endif
} }
@@ -1563,7 +1563,7 @@ public:
bool shouldResizeEditor = true; bool shouldResizeEditor = true;
#if JUCE_MAC #if JUCE_MAC
void* hostWindow = {};
void* hostWindow = nullptr;
#elif JUCE_LINUX #elif JUCE_LINUX
ScopedXDisplay display; ScopedXDisplay display;
Window hostWindow = {}; Window hostWindow = {};


Loading…
Cancel
Save