mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Remove unused variable
This commit is contained in:
parent
e1ed292a91
commit
5557cfe5b3
@ -27,7 +27,6 @@ bool HttpVersionChecker::checkNewVersion(QString sourceContent)
|
|||||||
{
|
{
|
||||||
QRegExp rx("#define VERSION \"([0-9]+).([0-9]+).([0-9]+)\"");
|
QRegExp rx("#define VERSION \"([0-9]+).([0-9]+).([0-9]+)\"");
|
||||||
|
|
||||||
int index = 0;
|
|
||||||
bool newVersion = false;
|
bool newVersion = false;
|
||||||
bool sameVersion = true;
|
bool sameVersion = true;
|
||||||
// bool currentVersionIsNewer = false;
|
// bool currentVersionIsNewer = false;
|
||||||
@ -37,7 +36,7 @@ bool HttpVersionChecker::checkNewVersion(QString sourceContent)
|
|||||||
QString version(VERSION);
|
QString version(VERSION);
|
||||||
#endif
|
#endif
|
||||||
QStringList sl = version.split(".");
|
QStringList sl = version.split(".");
|
||||||
if ((index = rx.indexIn(sourceContent)) != -1) {
|
if (rx.indexIn(sourceContent) != -1) {
|
||||||
int length = qMin(sl.size(), (rx.cap(4) != "") ? 4 : 3);
|
int length = qMin(sl.size(), (rx.cap(4) != "") ? 4 : 3);
|
||||||
for (int i = 0; i < length; i++) {
|
for (int i = 0; i < length; i++) {
|
||||||
if (rx.cap(i + 1).toInt() < sl.at(i).toInt()) {
|
if (rx.cap(i + 1).toInt() < sl.at(i).toInt()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user