aboutsummaryrefslogtreecommitdiff
path: root/odb/qt/date-time/sqlite/qdate-time-traits.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/qt/date-time/sqlite/qdate-time-traits.hxx')
-rw-r--r--odb/qt/date-time/sqlite/qdate-time-traits.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/qt/date-time/sqlite/qdate-time-traits.hxx b/odb/qt/date-time/sqlite/qdate-time-traits.hxx
index c62d513..5c9511f 100644
--- a/odb/qt/date-time/sqlite/qdate-time-traits.hxx
+++ b/odb/qt/date-time/sqlite/qdate-time-traits.hxx
@@ -56,8 +56,11 @@ namespace odb
{
is_null = false;
+ // Cannot use toStdString() here since Qt could have been
+ // configured without the STL compatibility support.
+ //
std::string s (
- v.toString ("yyyy-MM-ddTHH:mm:ss.zzz").toStdString ());
+ v.toString ("yyyy-MM-ddTHH:mm:ss.zzz").toLatin1 ().constData ());
n = s.size ();
if (n > i.capacity ())