aboutsummaryrefslogtreecommitdiff
path: root/odb/qt/date-time/sqlite/qtime-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:53:03 +0200
commit1039d51ecde835ef842a6596083e771f7f367fc7 (patch)
treeb7fc158dfe49ecfb0875766a9662274bbdf18dc8 /odb/qt/date-time/sqlite/qtime-traits.hxx
parent4d9bde105203653492573d6d52b307c3ce42419b (diff)
Don't use toStdString() since it may not be available
Diffstat (limited to 'odb/qt/date-time/sqlite/qtime-traits.hxx')
-rw-r--r--odb/qt/date-time/sqlite/qtime-traits.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/qt/date-time/sqlite/qtime-traits.hxx b/odb/qt/date-time/sqlite/qtime-traits.hxx
index 391df35..ad64ab5 100644
--- a/odb/qt/date-time/sqlite/qtime-traits.hxx
+++ b/odb/qt/date-time/sqlite/qtime-traits.hxx
@@ -57,7 +57,11 @@ namespace odb
{
is_null = false;
- std::string s (v.toString ("HH:mm:ss.zzz").toStdString ());
+ // Cannot use toStdString() here since Qt could have been
+ // configured without the STL compatibility support.
+ //
+ std::string s (
+ v.toString ("HH:mm:ss.zzz").toLatin1 ().constData ());
n = s.size ();
if (n > i.capacity ())