diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-02-17 16:19:00 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-02-18 10:43:46 +0100 |
commit | 988ca38c711c7cf56bba07f1cd6d380dbe701de3 (patch) | |
tree | f2371aacb53fa157e5bc57cc6632722221a1a1dd /src | |
parent | 132ea94fd23573b07fa9fbfb0a1e88173556e7ef (diff) | |
download | qtxmlpatterns-988ca38c711c7cf56bba07f1cd6d380dbe701de3.tar.gz |
Fix one more deprecation warning against QDateTime(QDate)
Change-Id: Iea19b45306566179390f6292341c0b8fb2a94559
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/xmlpatterns/data/qgmonthday.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/data/qgmonthday.cpp b/src/xmlpatterns/data/qgmonthday.cpp index c2bba53..daee4d4 100644 --- a/src/xmlpatterns/data/qgmonthday.cpp +++ b/src/xmlpatterns/data/qgmonthday.cpp @@ -77,7 +77,7 @@ GMonthDay::Ptr GMonthDay::fromLexical(const QString &lexical) GMonthDay::Ptr GMonthDay::fromDateTime(const QDateTime &dt) { - QDateTime result(QDate(DefaultYear, dt.date().month(), dt.date().day())); + QDateTime result(QDate(DefaultYear, dt.date().month(), dt.date().day()).startOfDay()); copyTimeSpec(dt, result); return GMonthDay::Ptr(new GMonthDay(result)); |