diff options
-rw-r--r-- | src/qftp/qftp.cpp | 6 | ||||
-rw-r--r-- | src/qftp/qftp.pro | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/qftp/qftp.cpp b/src/qftp/qftp.cpp index db6151e..2b48e5f 100644 --- a/src/qftp/qftp.cpp +++ b/src/qftp/qftp.cpp @@ -472,7 +472,7 @@ static void _q_fixupDateTime(QDateTime *dateTime) const int futureTolerance = 86400; if (dateTime->secsTo(QDateTime::currentDateTime()) < -futureTolerance) { QDate d = dateTime->date(); - d.setYMD(d.year() - 1, d.month(), d.day()); + d.setDate(d.year() - 1, d.month(), d.day()); dateTime->setDate(d); } } @@ -925,7 +925,7 @@ void QFtpPI::readyRead() while (commandSocket.canReadLine()) { // read line with respect to line continuation - QString line = QString::fromAscii(commandSocket.readLine()); + QString line = QString::fromLatin1(commandSocket.readLine()); if (replyText.isEmpty()) { if (line.length() < 3) { // protocol error @@ -957,7 +957,7 @@ void QFtpPI::readyRead() replyText += line; if (!commandSocket.canReadLine()) return; - line = QString::fromAscii(commandSocket.readLine()); + line = QString::fromLatin1(commandSocket.readLine()); lineLeft4 = line.left(4); } replyText += line.mid(4); // strip reply code 'xyz ' diff --git a/src/qftp/qftp.pro b/src/qftp/qftp.pro index bb377b5..d625fed 100644 --- a/src/qftp/qftp.pro +++ b/src/qftp/qftp.pro @@ -13,4 +13,3 @@ load(qt_module) # Input HEADERS += qftp.h qurlinfo.h SOURCES += qftp.cpp qurlinfo.cpp -DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 |