diff options
author | John Layt <jlayt@kde.org> | 2012-01-16 20:20:39 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-31 04:02:25 +0100 |
commit | 35b96c0d3d45ac991528099f4effa708bbb170e8 (patch) | |
tree | 5344cca7ff27d9e5c84c1272fbface74ac0fc1e8 /src/network | |
parent | 21b5d0e2c3dfcafcca098d285498ffc9fbbf0498 (diff) |
QDateTime: Deprecate setYMD()
Change-Id: I077332df554fb750666d51486c97724411276679
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/access/qftp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qftp.cpp b/src/network/access/qftp.cpp index de3b07750a..c7ad810084 100644 --- a/src/network/access/qftp.cpp +++ b/src/network/access/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); } } |