From 207048514d2cc671a850ec083b78a3e65e6771f1 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 6 Jun 2015 11:08:19 -0400 Subject: [PATCH] CLI: Removed overly complex handling of terminator in ::findOverrides. --- src/CLI.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/CLI.cpp b/src/CLI.cpp index e197959c1..73446f77e 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -781,16 +781,13 @@ void CLI::findOverrides () { bool changes = false; std::string raw; - bool terminated = false; + for (auto& a : _args) { raw = a.attribute ("raw"); if (raw == "--") - terminated = true; - - if (terminated) - continue; + break; if (isRCOverride (raw)) {