From ac24092ba6df7460860099f8d73f4bb9f2455333 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 8 Oct 2017 13:45:32 +0200 Subject: fix harmless msvc warnings --- compat/check-visible.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'compat') diff --git a/compat/check-visible.cpp b/compat/check-visible.cpp index a47af156..386bbb1f 100644 --- a/compat/check-visible.cpp +++ b/compat/check-visible.cpp @@ -39,8 +39,11 @@ void set_is_visible(const QWidget& w, bool force) }; for (const QPoint& pt : points) - if (!!(visible = WindowFromPoint({ pt.x(), pt.y() }) == id)) + { + visible = WindowFromPoint({ pt.x(), pt.y() }) == id; + if (visible) break; + } } never_inline OTR_COMPAT_EXPORT -- cgit v1.2.3