forked from loafle/openapi-generator-original
Bug Fix: Cast from QByteArray to std::runtime_error (#11594)
``` error: no matching conversion for functional-style cast from 'QByteArray' to 'std::runtime_error' ```
This commit is contained in:
parent
e35a1270a3
commit
03f3fd09cd
@ -46,7 +46,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user