From 200748966cae5d52b9aa73f810da4e09d23694f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Offringa?= <offringa@astron.nl>
Date: Thu, 10 Aug 2023 14:03:33 +0200
Subject: [PATCH] Move scripts

---
 rfigui/controllers/imagecomparisoncontroller.h | 5 +++--
 run-cpplist.sh => scripts/run-cpplint.sh       | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)
 rename run-cpplist.sh => scripts/run-cpplint.sh (89%)

diff --git a/rfigui/controllers/imagecomparisoncontroller.h b/rfigui/controllers/imagecomparisoncontroller.h
index f469f3fe..5d5c1adb 100644
--- a/rfigui/controllers/imagecomparisoncontroller.h
+++ b/rfigui/controllers/imagecomparisoncontroller.h
@@ -153,10 +153,11 @@ class ImageComparisonController {
       data.JoinMask(_dataList[altMaskIndex].data);
     } else if (orActive) {
       data.SetMask(_dataList[0].data);
-    } else if (altActive)
+    } else if (altActive) {
       data.SetMask(_dataList[altMaskIndex].data);
-    else
+    } else {
       data.SetMasksToValue<false>();
+    }
   }
   MaskedHeatMap _plot;
   bool _showPP, _showPQ, _showQP, _showQQ;
diff --git a/run-cpplist.sh b/scripts/run-cpplint.sh
similarity index 89%
rename from run-cpplist.sh
rename to scripts/run-cpplint.sh
index 8c1fbd9b..e6ddbce5 100755
--- a/run-cpplist.sh
+++ b/scripts/run-cpplint.sh
@@ -1,2 +1,3 @@
+cd ..
 cpplint --filter=-legal/copyright,-build/header_guard,-build/c++11 --verbose=5 --recursive --exclude=build --exclude=external --extensions=cpp,h .
-
+cd scripts
-- 
GitLab