diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-08 15:54:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-08 15:54:02 +0200 |
commit | 8f90336948770350c75c445d478c04107e5cef6e (patch) | |
tree | f2618592e93453bdf13f4bafdc912b840fbdb462 /connectivity | |
parent | 9d74271f742b06306ed10c6a9a7385c75d48fe14 (diff) |
loplugin:implicitboolconversion
Change-Id: Iec38fdf8c165d1121e74f7221b49ca49f808ac03
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 f5f7034e17f5..cd99994db4b8 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 && 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) |