From d1bf6e48afd613d2ef4a281daa2c8e38fe476b40 Mon Sep 17 00:00:00 2001 From: Qv2ray-dev <59914293+Qv2ray-dev@users.noreply.github.com> Date: Mon, 22 Jun 2020 22:02:14 +0800 Subject: [PATCH] fix: fix build --- makespec/BUILDVERSION | 2 +- src/common/QvHelpers.cpp | 4 +--- src/common/QvHelpers.hpp | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/makespec/BUILDVERSION b/makespec/BUILDVERSION index f855f8f1..4e687310 100644 --- a/makespec/BUILDVERSION +++ b/makespec/BUILDVERSION @@ -1 +1 @@ -5640 +5641 diff --git a/src/common/QvHelpers.cpp b/src/common/QvHelpers.cpp index 2782d098..02ce3cd9 100644 --- a/src/common/QvHelpers.cpp +++ b/src/common/QvHelpers.cpp @@ -3,8 +3,6 @@ #include "base/Qv2rayBase.hpp" #include "libs/puresource/src/PureJson.hpp" -#include - namespace Qv2ray::common { const QString GenerateRandomString(int len) @@ -236,7 +234,7 @@ namespace Qv2ray::common QMessageBox::information(parent, title, text, QMessageBox::Ok | QMessageBox::Default, 0); } QMessageBox::StandardButton QvMessageBoxAsk(QWidget *parent, const QString &title, const QString &text, - QMessageBox::StandardButton extraButtons = QMessageBox::StandardButton::NoButton) + QMessageBox::StandardButton extraButtons) { return QMessageBox::question(parent, title, text, QMessageBox::Yes | QMessageBox::No | extraButtons); } diff --git a/src/common/QvHelpers.hpp b/src/common/QvHelpers.hpp index b107bf95..bb86212c 100644 --- a/src/common/QvHelpers.hpp +++ b/src/common/QvHelpers.hpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #define REGEX_IPV6_ADDR \