From cb363421360b9263a2a9897933925451c7e41a2a Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Wed, 25 Oct 2017 14:55:42 +0500 Subject: [PATCH] Fix typo --- src/tests/netutil/test.cpp | 2 +- src/ui/task/tasktasix.cpp | 4 ++-- src/ui/task/tasktasix.h | 6 +++--- src/ui/task/taskuzonline.cpp | 2 +- src/ui/task/taskuzonline.h | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/tests/netutil/test.cpp b/src/tests/netutil/test.cpp index e788fa4f..a2ae26d6 100644 --- a/src/tests/netutil/test.cpp +++ b/src/tests/netutil/test.cpp @@ -68,7 +68,7 @@ void Test::taskTasix() const QByteArray buf = FileUtil::readFileData(STR(PWD) "/data/tasix-mrlg.html"); QVERIFY(!buf.isEmpty()); - const QString text = TaskTasix::parseTasixBufer(buf); + const QString text = TaskTasix::parseTasixBuffer(buf); QVERIFY(!text.isEmpty()); //QVERIFY(FileUtil::writeFile(QString(STR(PWD) "/data/tasix-mrlg.out"), text)); diff --git a/src/ui/task/tasktasix.cpp b/src/ui/task/tasktasix.cpp index 1d5bd593..ae9e825f 100644 --- a/src/ui/task/tasktasix.cpp +++ b/src/ui/task/tasktasix.cpp @@ -50,7 +50,7 @@ void TaskTasix::cancel(bool success) void TaskTasix::downloadFinished(bool success) { if (success) { - m_rangeText = parseBufer(m_downloader->buffer()); + m_rangeText = parseBuffer(m_downloader->buffer()); success = !m_rangeText.isEmpty(); } @@ -76,7 +76,7 @@ bool TaskTasix::processResult(FortManager *fortManager) #endif } -QString TaskTasix::parseTasixBufer(const QByteArray &buffer) +QString TaskTasix::parseTasixBuffer(const QByteArray &buffer) { QStringList list; diff --git a/src/ui/task/tasktasix.h b/src/ui/task/tasktasix.h index 81011420..13e1e2b4 100644 --- a/src/ui/task/tasktasix.h +++ b/src/ui/task/tasktasix.h @@ -14,13 +14,13 @@ public: HttpDownloader *downloader() const { return m_downloader; } - static QString parseTasixBufer(const QByteArray &buffer); + static QString parseTasixBuffer(const QByteArray &buffer); protected: virtual void startDownloader() const; - virtual QString parseBufer(const QByteArray &buffer) const { - return parseTasixBufer(buffer); + virtual QString parseBuffer(const QByteArray &buffer) const { + return parseTasixBuffer(buffer); } signals: diff --git a/src/ui/task/taskuzonline.cpp b/src/ui/task/taskuzonline.cpp index 0ef1c9ba..234092e2 100644 --- a/src/ui/task/taskuzonline.cpp +++ b/src/ui/task/taskuzonline.cpp @@ -8,7 +8,7 @@ TaskUzonline::TaskUzonline(QObject *parent) : } #include -QString TaskUzonline::parseUzonlineBufer(const QByteArray &buffer) +QString TaskUzonline::parseUzonlineBuffer(const QByteArray &buffer) { qDebug() << buffer.length() << buffer; return QString(); diff --git a/src/ui/task/taskuzonline.h b/src/ui/task/taskuzonline.h index 93ff8534..04dc20cb 100644 --- a/src/ui/task/taskuzonline.h +++ b/src/ui/task/taskuzonline.h @@ -10,13 +10,13 @@ class TaskUzonline : public TaskTasix public: explicit TaskUzonline(QObject *parent = nullptr); - static QString parseUzonlineBufer(const QByteArray &buffer); + static QString parseUzonlineBuffer(const QByteArray &buffer); protected: void startDownloader() const override; - QString parseBufer(const QByteArray &buffer) const override { - return parseUzonlineBufer(buffer); + QString parseBuffer(const QByteArray &buffer) const override { + return parseUzonlineBuffer(buffer); } };