diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-06-12 14:42:51 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-07-20 01:26:08 -0400 |
commit | e873661f6c20389d50ee2d4661b00d111e46f3e5 (patch) | |
tree | 724646bac031fa8984ff3f3a6a02a0ab6756045b /basic | |
parent | d48ceabd7aef42580d70c680ac863f497b146cca (diff) |
convert more DBG_ASSERT(false to SAL_WARN
Reviewed-on: https://gerrit.libreoffice.org/26195
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
(cherry picked from commit 272a8afa60fe9a6b497c69a58b0054ad5b880690)
Change-Id: Ie52f28f28c67a91c4d3d4517d5c6a466890c7a55
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxvalue.cxx | 6 | ||||
-rw-r--r-- | basic/source/sbx/sbxvar.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index 12f215003b09..19611d54e887 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -755,7 +755,7 @@ void BasicManager::LoadBasicManager( SotStorage& rStorage, const OUString& rBase // Plausibility! if( nLibs & 0xF000 ) { - DBG_ASSERT( false, "BasicManager-Stream defect!" ); + SAL_WARN( "basic", "BasicManager-Stream defect!" ); return; } const size_t nMinBasicLibSize(8); diff --git a/basic/source/sbx/sbxvalue.cxx b/basic/source/sbx/sbxvalue.cxx index d4b6c81c50e5..2bd6fc218dd1 100644 --- a/basic/source/sbx/sbxvalue.cxx +++ b/basic/source/sbx/sbxvalue.cxx @@ -76,7 +76,7 @@ SbxValue::SbxValue( SbxDataType t, void* p ) : SbxBase() aData.pDecimal->addRef(); break; default: - DBG_ASSERT( false, "Improper pointer argument" ); + SAL_WARN( "basic", "Improper pointer argument" ); n = SbxNULL; } } @@ -1547,7 +1547,7 @@ bool SbxValue::LoadData( SvStream& r, sal_uInt16 ) memset (&aData,0,sizeof(aData)); ResetFlag(SbxFlagBits::Fixed); aData.eType = SbxNULL; - DBG_ASSERT( false, "Loaded a non-supported data type" ); + SAL_WARN( "basic", "Loaded a non-supported data type" ); return false; } @@ -1649,7 +1649,7 @@ bool SbxValue::LoadData( SvStream& r, sal_uInt16 ) case SbxWCHAR: break; default: - DBG_ASSERT( false, "Saving a non-supported data type" ); + SAL_WARN( "basic", "Saving a non-supported data type" ); return false; } return true; diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx index 2bbe5081044b..b14ada6cd68f 100644 --- a/basic/source/sbx/sbxvar.cxx +++ b/basic/source/sbx/sbxvar.cxx @@ -552,7 +552,7 @@ bool SbxVariable::LoadData( SvStream& rStrm, sal_uInt16 nVer ) break; default: aData.eType = SbxNULL; - DBG_ASSERT( false, "Loaded a non-supported data type" ); + SAL_WARN( "basic", "Loaded a non-supported data type" ); return false; } // putt value |