summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:45:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:45:32 +0200
commitac24092ba6df7460860099f8d73f4bb9f2455333 (patch)
treefbd7a6e114d4579c636c7ec161672a83d0def2d4 /compat
parent48503f483f29450eca0f5a33381e0b64ef509d80 (diff)
fix harmless msvc warnings
Diffstat (limited to 'compat')
-rw-r--r--compat/check-visible.cpp5
1 files changed, 4 insertions, 1 deletions
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