forked from len0rd/rockbox
rbutil: Replace QRegExp with QRegularExpression.
The former is not part of Qt6 anymore, while the latter has been introduced with Qt5. We don't support Qt4 anymore, so move to QRegularExpression. Change-Id: Icc15ef422790f3740660c5581294aa0536f46b1f
This commit is contained in:
parent
72071d108c
commit
9e28474e47
11 changed files with 41 additions and 37 deletions
|
@ -233,10 +233,10 @@ bool BootloaderInstallIpod::ipodInitialize(struct ipod_t *ipod)
|
|||
sprintf(ipod->diskname, "\\\\.\\PhysicalDrive%i", devicename.toInt());
|
||||
#elif defined(Q_OS_MACX)
|
||||
sprintf(ipod->diskname, "%s",
|
||||
qPrintable(devicename.remove(QRegExp("s[0-9]+$"))));
|
||||
qPrintable(devicename.remove(QRegularExpression("s[0-9]+$"))));
|
||||
#else
|
||||
sprintf(ipod->diskname, "%s",
|
||||
qPrintable(devicename.remove(QRegExp("[0-9]+$"))));
|
||||
qPrintable(devicename.remove(QRegularExpression("[0-9]+$"))));
|
||||
#endif
|
||||
LOG_INFO() << "ipodpatcher: overriding scan, using"
|
||||
<< ipod->diskname;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue