diff options
author | Radu Ioan <ioan.radu.g@gmail.com> | 2012-12-31 02:53:06 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-12-31 12:22:42 +0000 |
commit | e4429d43f55c52f16130a745d428b89cbf2f0394 (patch) | |
tree | cf271f37918442a386e6cd6d5ddbd6bfa0719f19 | |
parent | 7d6112773e806630eeaffbfedb6ee89e81d2f8fc (diff) |
fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT
Changed some OSL_ and DBG_ to SAL_
Change-Id: I192994238b949ffc51697a356a2f49072d5cedb2
Reviewed-on: https://gerrit.libreoffice.org/1519
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
-rw-r--r-- | basctl/source/basicide/basobj2.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx index 25d43a0d74d8..6fac39761829 100644 --- a/basctl/source/basicide/basobj2.cxx +++ b/basctl/source/basicide/basobj2.cxx @@ -66,7 +66,7 @@ extern "C" { } SAL_DLLPUBLIC_EXPORT void basicide_macro_organizer( sal_Int16 nTabId ) { - OSL_TRACE("in basicide_macro_organizer"); + SAL_INFO("basctl.basicide","in basicide_macro_organizer"); basctl::Organize( nTabId ); } } @@ -165,7 +165,7 @@ bool RenameModule ( { if ( !rDocument.hasModule( rLibName, rOldName ) ) { - OSL_FAIL( "basctl::RenameModule: old module name is invalid!" ); + SAL_WARN( "basctl.basicide","basctl::RenameModule: old module name is invalid!" ); return false; } @@ -199,7 +199,7 @@ bool RenameModule ( // update tabwriter sal_uInt16 nId = pShell->GetWindowId( pWin ); - DBG_ASSERT( nId, "No entry in Tabbar!" ); + SAL_WARN_IF( nId == 0 , "basctl.basicide ", "No entry in Tabbar!"); if ( nId ) { TabBar& rTabBar = pShell->GetTabBar(); @@ -243,7 +243,7 @@ namespace // take ownership of the data ::std::auto_ptr< MacroExecutionData > pData( i_pData ); - DBG_ASSERT( pData->xMethod->GetParent()->GetFlags() & SBX_EXTSEARCH, "Kein EXTSEARCH!" ); + SAL_WARN_IF( !(pData->xMethod->GetParent()->GetFlags() & SBX_EXTSEARCH), "basctl.basicide","No EXTSEARCH!" ); // in case this is a document-local macro, try to protect the document's Undo Manager from // flawed scripts @@ -349,7 +349,7 @@ OUString ChooseMacro( const uno::Reference< frame::XModel >& rxLimitToDocument, xLimitToDocument.set( xScripts, UNO_QUERY ); if ( !xLimitToDocument.is() ) { - OSL_ENSURE( false, "basctl::ChooseMacro: a script container which is no document!?" ); + SAL_WARN_IF(!xLimitToDocument.is(), "basctl.basicide", "basctl::ChooseMacro: a script container which is no document!?" ); xLimitToDocument = rxLimitToDocument; } } @@ -423,7 +423,7 @@ Sequence< OUString > GetMethodNames( const ScriptDocument& rDocument, const OUSt SbMethod* pMethod = (SbMethod*)xModule->GetMethods()->Get( i ); if( pMethod->IsHidden() ) continue; - DBG_ASSERT( pMethod, "Method not found! (NULL)" ); + SAL_WARN_IF( !pMethod, "basctl.basicide","Method not found! (NULL)" ); aSeqMethods.getArray()[ iTarget++ ] = pMethod->GetName(); } } |