aboutsummaryrefslogtreecommitdiff
path: root/odb/qt/date-time/sqlite/qdate-time-traits.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-02-01 06:53:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-02-01 06:54:12 +0200
commitafca29f82408ec3fd1bd117a9f19f58f343ba3cc (patch)
tree573f516b7508c76fbb0a21b0b07bdf4a652714a0 /odb/qt/date-time/sqlite/qdate-time-traits.hxx
parentb8394b8f37ba09c800c15d065f17594215d3f00c (diff)
Don't use toStdString() since it may not be available
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 ())