aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-02-12 05:42:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-02-12 05:42:51 +0200
commit2baa7856aaa9e5f4ff3ec1d56e3e0ea317c15c7b (patch)
treec9ed46b24f8d0e05eaf888cde684d4551f5126fd
parent7c1756cacfff6e8e9c19d1aa8477447bc2c02805 (diff)
Suppress cast warnings
-rw-r--r--qt/oracle/basic/driver.cxx6
1 files changed, 4 insertions, 2 deletions
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<int> (unicode_str.size ()));
+ o.nvarchar2 = QString::fromUtf8 (unicode_str.c_str (),
+ static_cast<int> (unicode_str.size ()));
o.nclob = QString::fromStdString (long_str);
o.raw = QByteArray ("\0x13\0xDE\0x00\0x00\0x00\0x54\0xF2\0x6A", 8);