diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-04-27 17:12:12 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-04-27 17:12:12 +0000 |
| commit | f6de884f893ced4898bea36db4908fc449ebe9d9 (patch) | |
| tree | 195262472062a5c00b2b11110886c356f602bc03 /src/plugins/Input/cue | |
| parent | 92cbd573a865834260f4dbd27a5efcd34d6016cd (diff) | |
| download | qmmp-f6de884f893ced4898bea36db4908fc449ebe9d9.tar.gz qmmp-f6de884f893ced4898bea36db4908fc449ebe9d9.tar.bz2 qmmp-f6de884f893ced4898bea36db4908fc449ebe9d9.zip | |
cue plugin: cleanup
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3414 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/cue')
| -rw-r--r-- | src/plugins/Input/cue/cueparser.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/Input/cue/cueparser.cpp b/src/plugins/Input/cue/cueparser.cpp index 4fa6ba8d8..6d63d9803 100644 --- a/src/plugins/Input/cue/cueparser.cpp +++ b/src/plugins/Input/cue/cueparser.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2012 by Ilya Kotov * + * Copyright (C) 2008-2013 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -36,10 +36,8 @@ CUEParser::CUEParser(const QString &url) QString fileName = url; if(url.contains("://")) { - QString p = fileName; - p.remove("cue://"); - p.remove(QRegExp("#\\d+$")); - fileName = p; + fileName.remove("cue://"); + fileName.remove(QRegExp("#\\d+$")); } QFile file(fileName); if (!file.open(QIODevice::ReadOnly)) @@ -57,7 +55,7 @@ CUEParser::CUEParser(const QString &url) if(settings.value("use_enca", false).toBool()) { analyser = enca_analyser_alloc(settings.value("enca_lang").toByteArray ().constData()); - + if(analyser) { enca_set_threshold(analyser, 1.38); |
