diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-08 16:16:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-08 16:16:35 +0200 |
commit | 2c70139d6a8d8fabd671455d3edd32117783d4d7 (patch) | |
tree | 08196acbee8e094828bec6135c67ab34ceeeb3ca /connectivity | |
parent | 8f90336948770350c75c445d478c04107e5cef6e (diff) |
...or rather, like this
Change-Id: I87b547b76f6e214730757bec375b1d7b3d5d8f41
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/jdbc/Reader.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/jdbc/Reader.cxx b/connectivity/source/drivers/jdbc/Reader.cxx index cd99994db4b8..be913ddab16a 100644 --- a/connectivity/source/drivers/jdbc/Reader.cxx +++ b/connectivity/source/drivers/jdbc/Reader.cxx @@ -90,7 +90,7 @@ sal_Int32 SAL_CALL java_io_Reader::available( ) throw(::com::sun::star::io::Not out = t.pEnv->CallBooleanMethod( object, mID); ThrowRuntimeException(t.pEnv,*this); } //t.pEnv - return (m_buf != boost::none && out) ? 1 : 0; // no way to tell *how much* is ready + return (m_buf != boost::none ? 1 : 0) + (out ? 1 : 0); // no way to tell *how much* is ready } void SAL_CALL java_io_Reader::closeInput( ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) |