From 85acfb0842514edb90b051f04699a6c4953b5aab Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 9 Oct 2020 14:10:38 +0200 Subject: [PATCH] Use explicit cast to bool --- libs/ardour/vst3_plugin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/vst3_plugin.cc b/libs/ardour/vst3_plugin.cc index f5d21b5219..446198a056 100644 --- a/libs/ardour/vst3_plugin.cc +++ b/libs/ardour/vst3_plugin.cc @@ -1210,8 +1210,8 @@ VST3PI::disconnect_components () return false; } - bool res = componentCP->disconnect (this); - res &= controllerCP->disconnect (this); + bool res = kResultTrue == componentCP->disconnect (this); + res &= kResultTrue == controllerCP->disconnect (this); return res; }