Rename QRegExp to QRegularExpression

Thx Cassio
This commit is contained in:
Spiros
2024-06-06 17:59:01 +03:00
parent 8a493d424e
commit 19a703f745
2 changed files with 313 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ void MainWindow::scanDevices()
int startIndex = 0;
int endIndex = 0;
while ((endIndex = allDevicesOutput.indexOf(QRegExp("\\}\\n\\{"), startIndex)) != -1) {
while ((endIndex = allDevicesOutput.indexOf(QRegularExpression("\\}\\n\\{"), startIndex)) != -1) {
++endIndex;
QString jsonFragment = allDevicesOutput.mid(startIndex, endIndex - startIndex);
deviceOutputs.append(jsonFragment);