From 230588cbf98c53395946a20133d71f033bf2046f Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Mon, 10 Jun 2019 17:42:22 +0100 Subject: [PATCH] Fixed a compiler warning --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index 69ffe933c3..9dc082e0d6 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -1331,10 +1331,10 @@ public: void detachHostWindow() { #if JUCE_MAC - if (hostWindow != 0) + if (hostWindow != nullptr) { detachComponentFromWindowRefVST (this, hostWindow, wrapper.useNSView); - hostWindow = 0; + hostWindow = nullptr; } #endif @@ -1346,7 +1346,7 @@ public: void checkVisibility() { #if JUCE_MAC - if (hostWindow != 0) + if (hostWindow != nullptr) checkWindowVisibilityVST (hostWindow, this, wrapper.useNSView); #endif } @@ -1563,7 +1563,7 @@ public: bool shouldResizeEditor = true; #if JUCE_MAC - void* hostWindow = {}; + void* hostWindow = nullptr; #elif JUCE_LINUX ScopedXDisplay display; Window hostWindow = {};