diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-10-14 17:59:10 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-10-16 18:45:22 +0200 |
commit | ffff47459274d6187bb0ea6533f5acc0e7b7ed92 (patch) | |
tree | 721770583045fad6a5dc218aac4d08c449483021 /connectivity | |
parent | d9eac2ceb8c75c7219e7a6f50a3d774be311228b (diff) |
respect reference values in checkboxes
Change-Id: Ifd0953f779f530af6b190425794f009a891f0afb
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/FValue.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/commontools/dbtools.cxx | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx index c6c038f72c19..46fe62fdc3d5 100644 --- a/connectivity/source/commontools/FValue.cxx +++ b/connectivity/source/commontools/FValue.cxx @@ -26,6 +26,8 @@ #include <comphelper/extract.hxx> #include <com/sun/star/io/XInputStream.hpp> #include <rtl/ustrbuf.hxx> +#include <boost/type_traits.hpp> +#include <boost/static_assert.hpp> using namespace ::dbtools; using namespace ::com::sun::star::sdbc; diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx index 6ba64ddff9ed..e54ab300f17a 100644 --- a/connectivity/source/commontools/dbtools.cxx +++ b/connectivity/source/commontools/dbtools.cxx @@ -1905,7 +1905,7 @@ void setObjectWithInfo(const Reference<XParameters>& _xParams, break; case DataType::BIT: case DataType::BOOLEAN: - _xParams->setBoolean(parameterIndex,_rValue); + _xParams->setBoolean(parameterIndex,static_cast<bool>(_rValue)); break; case DataType::TINYINT: if ( _rValue.isSigned() ) |