connectivity/source/drivers/jdbc/Reader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 8f90336948770350c75c445d478c04107e5cef6e Author: Stephan Bergmann <[email protected]> Date: Fri May 8 15:54:02 2015 +0200 loplugin:implicitboolconversion Change-Id: Iec38fdf8c165d1121e74f7221b49ca49f808ac03 diff --git a/connectivity/source/drivers/jdbc/Reader.cxx b/connectivity/source/drivers/jdbc/Reader.cxx index f5f7034..cd99994 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) _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
