OSDN Git Service

Use simplified() method to clean-up input lines.
authorLoRd_MuldeR <mulder2@gmx.de>
Sun, 21 Oct 2018 12:22:04 +0000 (14:22 +0200)
committerLoRd_MuldeR <mulder2@gmx.de>
Sun, 21 Oct 2018 12:22:04 +0000 (14:22 +0200)
src/UpdateChecker.cpp

index 612e202..a829f41 100644 (file)
@@ -522,7 +522,7 @@ bool MUtils::UpdateChecker::parseVersionInfo(const QString &file, UpdateCheckerI
 
        while(!data.atEnd())
        {
 
        while(!data.atEnd())
        {
-               QString line = QString::fromLatin1(data.readLine()).trimmed();
+               QString line = QString::fromLatin1(data.readLine()).simplified();
                if (regex_sec.indexIn(line) >= 0)
                {
                        sectionId = 0; /*unknown section*/
                if (regex_sec.indexIn(line) >= 0)
                {
                        sectionId = 0; /*unknown section*/