diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-05 17:13:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-05 17:13:51 +0200 |
commit | 45611484324c284701d1fb6b5873ed4a05f0535b (patch) | |
tree | 6801b6831ddc04e8e95aff7687b71f4a22f195fd | |
parent | 4503191a037be58e769613281f90efa5310e547e (diff) |
Don't use deprecated Qt API (removed in Qt5)
-rw-r--r-- | odb/qt/date-time/sqlite/qdate-time-traits.hxx | 2 | ||||
-rw-r--r-- | odb/qt/date-time/sqlite/qdate-traits.hxx | 2 | ||||
-rw-r--r-- | odb/qt/date-time/sqlite/qtime-traits.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/odb/qt/date-time/sqlite/qdate-time-traits.hxx b/odb/qt/date-time/sqlite/qdate-time-traits.hxx index ef8a714..259d1c8 100644 --- a/odb/qt/date-time/sqlite/qdate-time-traits.hxx +++ b/odb/qt/date-time/sqlite/qdate-time-traits.hxx @@ -40,7 +40,7 @@ namespace odb v = QDateTime (); else v = QDateTime::fromString ( - QString::fromAscii (i.data (), static_cast<int> (n)), + QString::fromLatin1 (i.data (), static_cast<int> (n)), "yyyy-MM-ddTHH:mm:ss.zzz"); } diff --git a/odb/qt/date-time/sqlite/qdate-traits.hxx b/odb/qt/date-time/sqlite/qdate-traits.hxx index 05b96fc..175dc6b 100644 --- a/odb/qt/date-time/sqlite/qdate-traits.hxx +++ b/odb/qt/date-time/sqlite/qdate-traits.hxx @@ -41,7 +41,7 @@ namespace odb v.setDate (0, 0, 0); else v = QDate::fromString ( - QString::fromAscii (i.data (), static_cast<int> (n)), + QString::fromLatin1 (i.data (), static_cast<int> (n)), "yyyy-MM-dd"); } diff --git a/odb/qt/date-time/sqlite/qtime-traits.hxx b/odb/qt/date-time/sqlite/qtime-traits.hxx index 141090b..897fe22 100644 --- a/odb/qt/date-time/sqlite/qtime-traits.hxx +++ b/odb/qt/date-time/sqlite/qtime-traits.hxx @@ -41,7 +41,7 @@ namespace odb v.setHMS (24, 0, 0); else v = QTime::fromString ( - QString::fromAscii (i.data (), static_cast<int> (n)), + QString::fromLatin1 (i.data (), static_cast<int> (n)), "HH:mm:ss.zzz"); } |