diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-05-05 16:26:46 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-05-05 16:27:35 +0200 |
commit | 156095d6b4ef756f268ec32e0b5a42db0b0021f8 (patch) | |
tree | 25326257f00bdc6273b6c73d9dd88b29f70e896b /connectivity/source/drivers/ado | |
parent | 6efdabe96920628c9865d17ae11599cd7db43348 (diff) |
connectivity: convert the other OSL_ENSURE to SAL_WARN_IF
Change-Id: Ie3d84129b73792e1f129d65350bf0e1455b08566
Diffstat (limited to 'connectivity/source/drivers/ado')
-rw-r--r-- | connectivity/source/drivers/ado/Awrapado.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/ado/Awrapado.cxx b/connectivity/source/drivers/ado/Awrapado.cxx index 57f177d2d693..44383f4ec132 100644 --- a/connectivity/source/drivers/ado/Awrapado.cxx +++ b/connectivity/source/drivers/ado/Awrapado.cxx @@ -2137,14 +2137,14 @@ void WpADOColumn::put_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject) { assert(pInterface); bool bRet = SUCCEEDED(pInterface->put_ParentCatalog(ppvObject)); - OSL_ENSURE(bRet,"Could not set ParentCatalog!"); + SAL_WARN_IF(!bRet, "connectivity.ado", "Could not set ParentCatalog!"); } void WpADOTable::putref_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject) { assert(pInterface); bool bRet = SUCCEEDED(pInterface->putref_ParentCatalog(ppvObject)); - OSL_ENSURE(bRet,"Could not set ParentCatalog!"); + SAL_WARN_IF(!bRet, "connectivity.ado", "Could not set ParentCatalog!"); } void WpBase::setIDispatch(IDispatch* _pIUnknown) @@ -2154,12 +2154,12 @@ void WpBase::setIDispatch(IDispatch* _pIUnknown) void OTools::putValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition,const OLEVariant &_aValVar) { - OSL_ENSURE(_rProps.IsValid(),"Properties are not valid!"); + SAL_WARN_IF(!_rProps.IsValid(), "connectivity.ado", "Properties are not valid!"); WpADOProperty aProp(_rProps.GetItem(_aPosition)); if ( aProp.IsValid() ) { bool bRet = aProp.PutValue(_aValVar); - OSL_ENSURE(bRet,"Could not put value!"); + SAL_WARN_IF(!bRet, "connectivity.ado", "Could not put value!"); } } |