diff options
Diffstat (limited to 'qt/oracle')
-rw-r--r-- | qt/oracle/basic/driver.cxx | 6 |
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); |