User: hr Date: 06/06/19 18:35:25 Modified: /dba/connectivity/source/drivers/jdbc/ Reader.cxx
Log: INTEGRATION: CWS warnings01 (1.8.30); FILE MERGED 2005/12/22 11:44:51 fs 1.8.30.2: #i57457# warning-free code 2005/11/21 10:07:48 fs 1.8.30.1: #i57457# warning-free code on unx* File Changes: Directory: /dba/connectivity/source/drivers/jdbc/ ================================================= File [changed]: Reader.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/jdbc/Reader.cxx?r1=1.8&r2=1.9 Delta lines: +10 -9 -------------------- --- Reader.cxx 8 Sep 2005 06:11:36 -0000 1.8 +++ Reader.cxx 20 Jun 2006 01:35:22 -0000 1.9 @@ -88,8 +88,8 @@ SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); if( t.pEnv ) { - static char * cSignature = "(I)I"; - static char * cMethodName = "skip"; + static const char * cSignature = "(I)I"; + static const char * cMethodName = "skip"; // Java-Call absetzen static jmethodID mID = NULL; if ( !mID ) @@ -108,8 +108,8 @@ SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); if( t.pEnv ) { - static char * cSignature = "()Z"; - static char * cMethodName = "available"; + static const char * cSignature = "()Z"; + static const char * cMethodName = "available"; // Java-Call absetzen static jmethodID mID = NULL; if ( !mID ) @@ -128,8 +128,8 @@ SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); if( t.pEnv ) { - static char * cSignature = "()V"; - static char * cMethodName = "close"; + static const char * cSignature = "()V"; + static const char * cMethodName = "close"; // Java-Call absetzen static jmethodID mID = NULL; if ( !mID ) @@ -150,15 +150,16 @@ if( t.pEnv ) { jcharArray pCharArray = t.pEnv->NewCharArray(nBytesToRead); - static char * cSignature = "([CII)I"; - static char * cMethodName = "read"; + static const char * cSignature = "([CII)I"; + static const char * cMethodName = "read"; // Java-Call absetzen static jmethodID mID = NULL; if ( !mID ) mID = t.pEnv->GetMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!"); if( mID ) { - while(!(out = t.pEnv->CallIntMethod( object, mID,pCharArray,0,nBytesToRead))) + out = t.pEnv->CallIntMethod( object, mID, pCharArray, 0, nBytesToRead ); + if ( !out ) ThrowSQLException(t.pEnv,*this); if(out > 0) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
