From dd90e1846811b44c0437a3e6090836847e0863ad Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Thu, 12 Oct 2023 12:03:07 +0100 Subject: [PATCH] Fix a compiler warning --- modules/juce_gui_basics/native/juce_Windowing_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp index 6444b71c4d..52b65d4174 100644 --- a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp +++ b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp @@ -2358,7 +2358,7 @@ public: // The event was a keypress, rather than a text character - if (auto* target = peer->findCurrentTextInputTarget()) + if (peer->findCurrentTextInputTarget() != nullptr) { // If there's a focused text input target, we want to attempt "real" text input with an // IME, and we want to prevent the host from eating keystrokes (spaces etc.).