From b60a49bef32fb843b4e298e374248a123af987a0 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sun, 3 Jun 2018 03:42:35 +0300 Subject: [PATCH] Fix not working comparison --- UEFIFind/uefifind_main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/UEFIFind/uefifind_main.cpp b/UEFIFind/uefifind_main.cpp index eb624b5..f4e7a35 100644 --- a/UEFIFind/uefifind_main.cpp +++ b/UEFIFind/uefifind_main.cpp @@ -27,10 +27,10 @@ int main(int argc, char *argv[]) UINT8 result; if (a.arguments().length() == 5) { - const QString &inputArg = a.arguments().at(1); - const QString &modeArg = a.arguments().at(2); - const QString &subModeArg = a.arguments().at(3); - const QString &patternArg = a.arguments().at(4); + QString inputArg = a.arguments().at(1); + QString modeArg = a.arguments().at(2); + QString subModeArg = a.arguments().at(3); + QString patternArg = a.arguments().at(4); // Get search mode UINT8 mode; @@ -72,9 +72,9 @@ int main(int argc, char *argv[]) return U_SUCCESS; } else if (a.arguments().length() == 4) { - const QString &inputArg = a.arguments().at(1); - const QString &modeArg = a.arguments().at(2); - const QString &patternArg = a.arguments().at(3); + QString inputArg = a.arguments().at(1); + QString modeArg = a.arguments().at(2); + QString patternArg = a.arguments().at(3); // Get search mode if (modeArg != QString("file"))