diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-10-27 18:39:24 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-10-27 18:39:24 +0000 |
| commit | 89f38b68c3a0c4a85b755006bf602d76fdc37875 (patch) | |
| tree | 674619678c1136c4b4503ff356f6d8a150a3758b /src/plugins/Input/cue | |
| parent | 81170fffef768feee0c91ae953f2c05d1fed6a75 (diff) | |
| download | qmmp-89f38b68c3a0c4a85b755006bf602d76fdc37875.tar.gz qmmp-89f38b68c3a0c4a85b755006bf602d76fdc37875.tar.bz2 qmmp-89f38b68c3a0c4a85b755006bf602d76fdc37875.zip | |
ported all remaining code to QRegularExpression
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9532 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/cue')
| -rw-r--r-- | src/plugins/Input/cue/cuefile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/Input/cue/cuefile.cpp b/src/plugins/Input/cue/cuefile.cpp index d0979e24a..806f5e4c5 100644 --- a/src/plugins/Input/cue/cuefile.cpp +++ b/src/plugins/Input/cue/cuefile.cpp @@ -24,6 +24,7 @@ #include <QSettings> #include <QTextStream> #include <QTextCodec> +#include <QRegularExpression> #include <qmmp/decoder.h> #include <qmmp/metadatamanager.h> #ifdef WITH_ENCA @@ -182,7 +183,7 @@ QString CueFile::getDirtyPath(const QString &cue_path, const QString &path) int dot = cue_path.lastIndexOf('.'); if (dot != -1) { - QRegExp r(QRegExp::escape(cue_path.left(dot)) + "\\.[^\\.]+$"); + QRegularExpression r(QRegularExpression::escape(cue_path.left(dot)) + "\\.[^\\.]+$"); int index = candidates.indexOf(r); int rindex = candidates.lastIndexOf(r); @@ -193,7 +194,7 @@ QString CueFile::getDirtyPath(const QString &cue_path, const QString &path) dot = path.lastIndexOf('.'); if (dot != -1) { - QRegExp r(QRegExp::escape(path.left(dot)) + "\\.[^\\.]+$"); + QRegularExpression r(QRegularExpression::escape(path.left(dot)) + "\\.[^\\.]+$"); int index = candidates.indexOf(r); int rindex = candidates.lastIndexOf(r); |
