diff options
Diffstat (limited to 'connectivity/source/drivers/odbc/OTools.cxx')
-rw-r--r-- | connectivity/source/drivers/odbc/OTools.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/connectivity/source/drivers/odbc/OTools.cxx b/connectivity/source/drivers/odbc/OTools.cxx index 4d386e70cabe..27c35a734146 100644 --- a/connectivity/source/drivers/odbc/OTools.cxx +++ b/connectivity/source/drivers/odbc/OTools.cxx @@ -25,6 +25,9 @@ #include "diagnose_ex.h" #include <rtl/ustrbuf.hxx> #include <boost/static_assert.hpp> +#include <boost/typeof/typeof.hpp> +#include <boost/mpl/bool.hpp> +#include <boost/mpl/if.hpp> #include <string.h> @@ -459,7 +462,7 @@ OUString OTools::getStringValue(OConnection* _pConnection, if (sizeof (SQLWCHAR) == 2) { - aData.append(waCharArray, nReadChars); + aData.append(reinterpret_cast< boost::mpl::if_< boost::mpl::bool_< sizeof(SQLWCHAR) == 2 >, BOOST_TYPEOF(&waCharArray[0]), sal_Unicode* >::type >(waCharArray), nReadChars); } else { |