From c3c82513fe07b80feb0b14eba4b5be52d320a937 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 26 Feb 2022 15:26:10 +0800 Subject: [PATCH] update samples for cpp-qt client --- samples/client/petstore/cpp-qt/client/PFXServerConfiguration.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/client/petstore/cpp-qt/client/PFXServerConfiguration.h b/samples/client/petstore/cpp-qt/client/PFXServerConfiguration.h index 42e7504dcaa..12541d41cfc 100644 --- a/samples/client/petstore/cpp-qt/client/PFXServerConfiguration.h +++ b/samples/client/petstore/cpp-qt/client/PFXServerConfiguration.h @@ -54,7 +54,7 @@ public: QString value = serverVariable._defaultValue; if (!serverVariable._enumValues.empty() && !serverVariable._enumValues.contains(value)) { - throw std::runtime_error(QString("The variable " + name + " in the server URL has invalid value " + value + ".").toUtf8()); + throw std::runtime_error(QString("The variable " + name + " in the server URL has invalid value " + value + ".").toUtf8().toStdString()); } QRegularExpression regex(QString("\\{" + name + "\\}")); url = url.replace(regex, value);