const-ify arguments of some OTools function members
Change-Id: Ie19a5277a9b847a9e440d137cf7ee18943c77832
This commit is contained in:
@@ -290,13 +290,13 @@ void OTools::bindValue( OConnection* _pConnection,
|
|||||||
OTools::ThrowException(_pConnection,nRetcode,_aStatementHandle,SQL_HANDLE_STMT,_xInterface);
|
OTools::ThrowException(_pConnection,nRetcode,_aStatementHandle,SQL_HANDLE_STMT,_xInterface);
|
||||||
}
|
}
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
void OTools::ThrowException(OConnection* _pConnection,
|
void OTools::ThrowException(const OConnection* _pConnection,
|
||||||
SQLRETURN _rRetCode,
|
const SQLRETURN _rRetCode,
|
||||||
SQLHANDLE _pContext,
|
const SQLHANDLE _pContext,
|
||||||
SQLSMALLINT _nHandleType,
|
const SQLSMALLINT _nHandleType,
|
||||||
const Reference< XInterface >& _xInterface,
|
const Reference< XInterface >& _xInterface,
|
||||||
sal_Bool _bNoFound,
|
const sal_Bool _bNoFound,
|
||||||
rtl_TextEncoding _nTextEncoding) throw(SQLException)
|
const rtl_TextEncoding _nTextEncoding) throw(SQLException)
|
||||||
{
|
{
|
||||||
switch(_rRetCode)
|
switch(_rRetCode)
|
||||||
{
|
{
|
||||||
@@ -350,10 +350,10 @@ void OTools::ThrowException(OConnection* _pConnection,
|
|||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
Sequence<sal_Int8> OTools::getBytesValue(OConnection* _pConnection,
|
Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection,
|
||||||
SQLHANDLE _aStatementHandle,
|
const SQLHANDLE _aStatementHandle,
|
||||||
sal_Int32 columnIndex,
|
const sal_Int32 columnIndex,
|
||||||
SQLSMALLINT _fSqlType,
|
const SQLSMALLINT _fSqlType,
|
||||||
sal_Bool &_bWasNull,
|
sal_Bool &_bWasNull,
|
||||||
const Reference< XInterface >& _xInterface) throw(SQLException, RuntimeException)
|
const Reference< XInterface >& _xInterface) throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
|
@@ -97,7 +97,7 @@ namespace connectivity
|
|||||||
class OOO_DLLPUBLIC_ODBCBASE OTools
|
class OOO_DLLPUBLIC_ODBCBASE OTools
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void ThrowException( OConnection* _pConnection,
|
static void ThrowException( const OConnection* _pConnection,
|
||||||
SQLRETURN _rRetCode,
|
SQLRETURN _rRetCode,
|
||||||
SQLHANDLE _pContext,
|
SQLHANDLE _pContext,
|
||||||
SQLSMALLINT _nHandleType,
|
SQLSMALLINT _nHandleType,
|
||||||
@@ -191,7 +191,7 @@ namespace connectivity
|
|||||||
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface,
|
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface,
|
||||||
rtl_TextEncoding _nTextEncoding) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
|
rtl_TextEncoding _nTextEncoding) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
|
||||||
|
|
||||||
static ::com::sun::star::uno::Sequence<sal_Int8> getBytesValue(OConnection* _pConnection,
|
static ::com::sun::star::uno::Sequence<sal_Int8> getBytesValue(const OConnection* _pConnection,
|
||||||
SQLHANDLE _aStatementHandle,
|
SQLHANDLE _aStatementHandle,
|
||||||
sal_Int32 columnIndex,
|
sal_Int32 columnIndex,
|
||||||
SQLSMALLINT _fSqlType,
|
SQLSMALLINT _fSqlType,
|
||||||
|
Reference in New Issue
Block a user