mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-20 19:50:53 +03:00
Rename QRegExp to QRegularExpression
Thx Cassio
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user