From 5c24a2ec43f4b7f85211662c21988d5bdd9abbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Wed, 2 May 2018 11:59:05 -0300 Subject: [PATCH] QGCFlightGearLink: correct if-if else logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/comm/QGCFlightGearLink.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/comm/QGCFlightGearLink.cc b/src/comm/QGCFlightGearLink.cc index ea141ca797..890ca1e83f 100644 --- a/src/comm/QGCFlightGearLink.cc +++ b/src/comm/QGCFlightGearLink.cc @@ -544,15 +544,9 @@ bool QGCFlightGearLink::parseUIArguments(QString uiArgs, QStringList& argList) } else if (chr == '\"') { // Flip the state of being in a quoted string. Note that we specifically do not add the // quote to the string. This replicates standards command line parsing behaviour. - if (chr == '\"') { - inQuotedString = !inQuotedString; - } + inQuotedString = !inQuotedString; previousSpace = false; } else { - // Flip the state of being in a quoted string - if (chr == '\"') { - inQuotedString = !inQuotedString; - } previousSpace = false; currentArg += chr; } -- GitLab