From 2baa7856aaa9e5f4ff3ec1d56e3e0ea317c15c7b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 12 Feb 2013 05:42:51 +0200 Subject: Suppress cast warnings --- qt/oracle/basic/driver.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'qt') diff --git a/qt/oracle/basic/driver.cxx b/qt/oracle/basic/driver.cxx index a570d74..a3c919a 100644 --- a/qt/oracle/basic/driver.cxx +++ b/qt/oracle/basic/driver.cxx @@ -47,8 +47,10 @@ main (int argc, char* argv[]) // fromStdString() assumes ASCII in Qt4 and UTF-8 in Qt5. // - o.nchar= QString::fromUtf8 (unicode_str.c_str (), unicode_str.size ()); - o.nvarchar2 = QString::fromUtf8 (unicode_str.c_str (), unicode_str.size ()); + o.nchar= QString::fromUtf8 (unicode_str.c_str (), + static_cast (unicode_str.size ())); + o.nvarchar2 = QString::fromUtf8 (unicode_str.c_str (), + static_cast (unicode_str.size ())); o.nclob = QString::fromStdString (long_str); o.raw = QByteArray ("\0x13\0xDE\0x00\0x00\0x00\0x54\0xF2\0x6A", 8); -- cgit v1.1