From 1039d51ecde835ef842a6596083e771f7f367fc7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 1 Feb 2014 06:53:03 +0200 Subject: Don't use toStdString() since it may not be available --- odb/qt/date-time/sqlite/qtime-traits.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'odb/qt/date-time/sqlite/qtime-traits.hxx') 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 ()) -- cgit v1.1