diff --git a/Qv2ray.pro b/Qv2ray.pro index 789bb7a0..44b37a39 100644 --- a/Qv2ray.pro +++ b/Qv2ray.pro @@ -23,7 +23,7 @@ no_increase_build_number { DEFINES += QT_DEPRECATED_WARNINGS QV2RAY_VERSION_STRING=\"\\\"v$${VERSION}\\\"\" QAPPLICATION_CLASS=QApplication # Don't merge those configs with below. -CONFIG += enable_decoder_qr_code enable_encoder_qr_code qt c++17 openssl-linked +CONFIG += enable_decoder_qr_code enable_encoder_qr_code qt c++11 openssl-linked include(3rdparty/qzxing/src/QZXing-components.pri) include(3rdparty/SingleApplication/singleapplication.pri) diff --git a/src/main.cpp b/src/main.cpp index bc856d4e..707fccd7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -186,8 +186,9 @@ int main(int argc, char *argv[]) { std::unique_ptr consoleApp(new QCoreApplication(argc, argv)); QvCommandArgParser parser; - - switch (QString errorMessage; parser.ParseCommandLine(&errorMessage)) { + QString errorMessage; + + switch (parser.ParseCommandLine(&errorMessage)) { case CommandLineOk: break;