diff options
107 files changed, 263 insertions, 263 deletions
diff --git a/accessibility/source/extended/AccessibleBrowseBoxTable.cxx b/accessibility/source/extended/AccessibleBrowseBoxTable.cxx index ad5594df6987..fabe25d079f5 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxTable.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxTable.cxx @@ -264,7 +264,7 @@ Reference< XAccessibleTable > AccessibleBrowseBoxTable::implGetHeaderBar( } catch( lang::IndexOutOfBoundsException& ) { - DBG_ERROR( "implGetHeaderBar - wrong child index" ); + OSL_FAIL( "implGetHeaderBar - wrong child index" ); } // RuntimeException goes to caller } diff --git a/accessibility/source/extended/AccessibleGridControlTable.cxx b/accessibility/source/extended/AccessibleGridControlTable.cxx index 18124682ae60..4fdadbec97f4 100644 --- a/accessibility/source/extended/AccessibleGridControlTable.cxx +++ b/accessibility/source/extended/AccessibleGridControlTable.cxx @@ -364,7 +364,7 @@ Reference< XAccessibleTable > AccessibleGridControlTable::implGetHeaderBar( } catch( lang::IndexOutOfBoundsException& ) { - DBG_ERROR( "implGetHeaderBar - wrong child index" ); + OSL_FAIL( "implGetHeaderBar - wrong child index" ); } // RuntimeException goes to caller } diff --git a/automation/source/communi/communi.cxx b/automation/source/communi/communi.cxx index f19b095449ff..7f44e1cf032f 100644 --- a/automation/source/communi/communi.cxx +++ b/automation/source/communi/communi.cxx @@ -56,7 +56,7 @@ _SV_IMPL_SORTAR_ALG( nm,AE )\ if( nL ) {\ DBG_ASSERT( nP < nA && nP + nL <= nA, "ERR_VAR_DEL" );\ for( USHORT n=nP; n < nP + nL; n++ ) \ - DBG_ERROR("Das Element der Liste wurde nicht gelscht"); \ + OSL_FAIL("Das Element der Liste wurde nicht gelscht"); \ SvPtrarr::Remove( nP, nL ); \ } \ } \ diff --git a/automation/source/server/XMLParser.cxx b/automation/source/server/XMLParser.cxx index 059c173a3c82..8de072898297 100644 --- a/automation/source/server/XMLParser.cxx +++ b/automation/source/server/XMLParser.cxx @@ -178,7 +178,7 @@ ElementNode::ElementNode( const String& aName, Reference < XAttributeList > xAtt xAttributeList = Reference < XAttributeList > ( xAttributeCloner->createClone() , UNO_QUERY ); else { - DBG_ERROR("Unable to clone AttributeList"); + OSL_FAIL("Unable to clone AttributeList"); } } }; diff --git a/automation/source/server/cmdbasestream.cxx b/automation/source/server/cmdbasestream.cxx index 1e670a6e4d6a..ce280607cc3b 100644 --- a/automation/source/server/cmdbasestream.cxx +++ b/automation/source/server/cmdbasestream.cxx @@ -281,23 +281,23 @@ void CmdBaseStream::Write( comm_BOOL bBool ) void CmdBaseStream::Read ( comm_String* &pString ) { (void) pString; /* avoid warning about unused parameter */ - DBG_ERROR("Read ( comm_String* &pString ) Not Implemented"); + OSL_FAIL("Read ( comm_String* &pString ) Not Implemented"); } void CmdBaseStream::Read ( SmartId* &pId ) { (void) pId; /* avoid warning about unused parameter */ - DBG_ERROR("Read ( SmartId* &pId ) Not Implemented"); + OSL_FAIL("Read ( SmartId* &pId ) Not Implemented"); } void CmdBaseStream::Write( comm_String *pString ) { (void) pString; /* avoid warning about unused parameter */ - DBG_ERROR("Write( comm_String *pString ) Not Implemented"); + OSL_FAIL("Write( comm_String *pString ) Not Implemented"); } void CmdBaseStream::Write( SmartId* pId ) { (void) pId; /* avoid warning about unused parameter */ - DBG_ERROR("Write( SmartId* pId ) Not Implemented"); + OSL_FAIL("Write( SmartId* pId ) Not Implemented"); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/automation/source/server/recorder.cxx b/automation/source/server/recorder.cxx index aebbfb40d9a8..d233dede5164 100644 --- a/automation/source/server/recorder.cxx +++ b/automation/source/server/recorder.cxx @@ -236,7 +236,7 @@ IMPL_LINK( MacroRecorder, EventListener, VclSimpleEvent*, pEvent ) case STATE_NOCHECK: nMethod = M_UnCheck; aMethod = CUniString("UnCheck"); break; case STATE_DONTKNOW: nMethod = M_TriState; aMethod = CUniString("TriState"); break; default: nMethod = M_Check; - DBG_ERROR( "Unknown state in TriStateBox::GetState()" ); + OSL_FAIL( "Unknown state in TriStateBox::GetState()" ); } if ( m_bRecord ) { @@ -395,7 +395,7 @@ IMPL_LINK( MacroRecorder, EventListener, VclSimpleEvent*, pEvent ) case WINDOW_CANCELBUTTON: nMethod = M_Cancel; aMethod = CUniString("Cancel"); break; case WINDOW_HELPBUTTON: nMethod = M_Help; aMethod = CUniString("Help"); break; default: nMethod = M_Default;aMethod = CUniString("Unknown Button"); - DBG_ERROR( "Unknown Button" ); + OSL_FAIL( "Unknown Button" ); } if ( m_bRecord ) { @@ -452,7 +452,7 @@ IMPL_LINK( MacroRecorder, EventListener, VclSimpleEvent*, pEvent ) case VCLEVENT_SPINFIELD_FIRST: nMethod = M_ToMin; aMethod = CUniString("ToMin"); break; case VCLEVENT_SPINFIELD_LAST: nMethod = M_ToMax; aMethod = CUniString("ToMax"); break; default: nMethod = M_ToMin; aMethod = CUniString("Unknown"); - DBG_ERROR( "Unknown EventID in Spinfield" ); + OSL_FAIL( "Unknown EventID in Spinfield" ); } if ( m_bRecord ) { diff --git a/automation/source/server/server.cxx b/automation/source/server/server.cxx index 62d5f13ba897..322d70522fe3 100644 --- a/automation/source/server/server.cxx +++ b/automation/source/server/server.cxx @@ -637,7 +637,7 @@ IMPL_LINK( ImplRemoteControl, CommandHdl, Application*, EMPTYARG ) pDlg->SetOutputSizePixel(Size(150,0)); pDlg->SetText( String ( TTProperties::GetSvtResId( TT_GPF ) ) ); pDlg->Show(); - DBG_ERROR("GPF"); + OSL_FAIL("GPF"); pC->ReportError( GEN_RES_STR0( S_GPF_ABORT ) ); StatementList::bDying = TRUE; while ( StatementList::pFirst ) // Kommandos werden bersprungen @@ -744,7 +744,7 @@ BOOL ImplRemoteControl::QueCommands( ULONG nServiceId, SvStream *pIn ) if( !pIn->IsEof() ) pCmdStream->Read( nId ); else { - DBG_ERROR( "truncated input stream" ); + OSL_FAIL( "truncated input stream" ); } } diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx index e2e868a1cd31..e363f83c5195 100644 --- a/automation/source/server/statemnt.cxx +++ b/automation/source/server/statemnt.cxx @@ -187,7 +187,7 @@ void StatementFlow::SendViaSocket() #if OSL_DEBUG_LEVEL > 1 m_pDbgWin->AddText( "SendViaSocket called recursively. Aborted!!!\n" ); #endif - DBG_ERROR("SendViaSocket called recursively. Aborted!!!"); + OSL_FAIL("SendViaSocket called recursively. Aborted!!!"); return; } bSending = TRUE; @@ -199,7 +199,7 @@ void StatementFlow::SendViaSocket() else { // Macht nix. Wenn das Basic nicht mehr da ist, ist sowiso alles egal - DBG_ERROR("Cannot send results to TestTool"); + OSL_FAIL("Cannot send results to TestTool"); } pRet->Reset(); @@ -263,7 +263,7 @@ BOOL StatementFlow::Execute() break; default: - DBG_ERROR( "Unknown Flowcontrol" ); + OSL_FAIL( "Unknown Flowcontrol" ); break; } @@ -2417,7 +2417,7 @@ BOOL StatementCommand::Execute() break; } default: - DBG_ERROR( "Unknown Windowtype" ); + OSL_FAIL( "Unknown Windowtype" ); REPORT_WIN_CLOSEDc(pControl, "Unknown Windowtype"); ReportError( GEN_RES_STR0( S_RESETAPPLICATION_FAILED_UNKNOWN ), pControl->GetType() ); #if OSL_DEBUG_LEVEL > 1 @@ -3448,7 +3448,7 @@ StatementControl::StatementControl( SCmdStream *pCmdIn, USHORT nControlIdType ) } else { - DBG_ERROR( "Wrong ControlType" ); + OSL_FAIL( "Wrong ControlType" ); } pCmdIn->Read( nMethodId ); @@ -6029,7 +6029,7 @@ BOOL StatementControl::Execute() pFloat = pControl->GET_REAL_PARENT(); else { - DBG_ERROR("FloatingMode set but Parent is no FloatingWindow"); + OSL_FAIL("FloatingMode set but Parent is no FloatingWindow"); } } if ( pFloat && pFloat->GetType() == WINDOW_FLOATINGWINDOW ) @@ -6375,7 +6375,7 @@ BOOL StatementControl::Execute() break; } default: - DBG_ERROR( "Unknown Objekttype from UId or Method not suported" ); + OSL_FAIL( "Unknown Objekttype from UId or Method not suported" ); ReportError( aUId, GEN_RES_STR2( S_UNKNOWN_TYPE, UniString::CreateFromInt32( nRT ), MethodString(nMethodId) ) ); #if OSL_DEBUG_LEVEL > 1 m_pDbgWin->AddText( " Unknown Objekttype from UId or Method not suported" ); diff --git a/automation/source/simplecm/packethandler.cxx b/automation/source/simplecm/packethandler.cxx index 034143d2cba6..572c79b9e1a0 100644 --- a/automation/source/simplecm/packethandler.cxx +++ b/automation/source/simplecm/packethandler.cxx @@ -143,7 +143,7 @@ comm_BOOL PacketHandler::ReceiveData( void* &pData, comm_UINT32 &nLen ) break; default: { - DBG_ERROR("Unbekannter Headertyp in der Kommunikation"); + OSL_FAIL("Unbekannter Headertyp in der Kommunikation"); bWasError = TRUE; } @@ -285,7 +285,7 @@ comm_BOOL PacketHandler::SendHandshake( HandshakeType aHandshakeType, const void nBuffer += 0 ; // one word extradata for options break; default: - DBG_ERROR("Unknown HandshakeType"); + OSL_FAIL("Unknown HandshakeType"); } if ( pData ) diff --git a/automation/source/simplecm/simplecm.cxx b/automation/source/simplecm/simplecm.cxx index 0e51768361c5..638813de9b40 100644 --- a/automation/source/simplecm/simplecm.cxx +++ b/automation/source/simplecm/simplecm.cxx @@ -336,7 +336,7 @@ BOOL SimpleCommunicationLinkViaSocket::SendHandshake( HandshakeType aHandshakeTy case CH_SetApplication: break; default: - DBG_ERROR("Unknown HandshakeType"); + OSL_FAIL("Unknown HandshakeType"); } } return !bWasError; @@ -484,7 +484,7 @@ void CommunicationManager::CallDataReceived( CommunicationLink* pCL ) // should be impossible but happens for mysterious reasons if ( !pCL->pServiceData ) { - DBG_ERROR( "Datastream is NULL" ); + OSL_FAIL( "Datastream is NULL" ); pCL->FinishCallback(); return; } diff --git a/automation/source/testtool/objtest.cxx b/automation/source/testtool/objtest.cxx index dd4d78fbdeb6..c8e948f834b8 100644 --- a/automation/source/testtool/objtest.cxx +++ b/automation/source/testtool/objtest.cxx @@ -202,7 +202,7 @@ ControlDef::ControlDef(const String &aOldName, const String &aNewName, ControlDe pNewDef = new ControlDef( aOldName, aNewName, pOriginal->SonGetObject(i) ,TRUE ); if (! SonInsert(pNewDef)) { - DBG_ERROR("Name Doppelt im CopyConstructor. Neuer Name = Controlname!!"); + OSL_FAIL("Name Doppelt im CopyConstructor. Neuer Name = Controlname!!"); delete pNewDef; } } @@ -233,7 +233,7 @@ void CRevNames::Insert( String aName, SmartId aUId, ULONG nSeq ) if ( !CNames::C40_PTR_INSERT( ControlItem, pRN) ) { - DBG_ERROR("Interner Fehler beim Speichern der Lokalen KurzNamen"); + OSL_FAIL("Interner Fehler beim Speichern der Lokalen KurzNamen"); delete pRN; } @@ -541,7 +541,7 @@ void TestToolObj::InitTestToolObj() } else { - DBG_ERROR("Testtool: Could not replace Wait method"); + OSL_FAIL("Testtool: Could not replace Wait method"); } MAKE_TT_KEYWORD( "Kontext", SbxCLASS_METHOD, SbxNULL, ID_Kontext ); @@ -927,7 +927,7 @@ void TestToolObj::ReadNames( String Filename, CNames *&pNames, CNames *&pUIds, B aUId = SmartId( aLongname ); else { - DBG_ERROR("Unknown URL schema"); + OSL_FAIL("Unknown URL schema"); } } @@ -948,7 +948,7 @@ void TestToolObj::ReadNames( String Filename, CNames *&pNames, CNames *&pUIds, B if (!pNewDef->SonInsert( pNewDef2 )) // Dialog in eigenen Namespace eintragen { delete pNewDef2; - DBG_ERROR(" !!!! ACHTUNG !!!! Fehler beim einf�gen in leere Liste!"); + OSL_FAIL(" !!!! ACHTUNG !!!! Fehler beim einf�gen in leere Liste!"); } } @@ -1215,7 +1215,7 @@ void TestToolObj::SendViaSocket() { if ( !pCommunicationManager ) { - DBG_ERROR("Kein CommunicationManager vorhanden!!"); + OSL_FAIL("Kein CommunicationManager vorhanden!!"); return; } @@ -1300,7 +1300,7 @@ void TestToolObj::EndBlock() } else { - DBG_ERROR("EndBlock au�erhalb eines Blockes"); + OSL_FAIL("EndBlock au�erhalb eines Blockes"); } } @@ -1415,14 +1415,14 @@ BOOL TestToolObj::ReadNamesBin( String Filename, CNames *&pSIds, CNames *&pContr if (!pNewDef->SonInsert(pNewDef2)) // Dialog in eigenen Namespace eintragen { delete pNewDef2; - DBG_ERROR(" !!!! ACHTUNG !!!! Fehler beim einf�gen in leere Liste!"); + OSL_FAIL(" !!!! ACHTUNG !!!! Fehler beim einf�gen in leere Liste!"); } } const ControlItem *pItem = pNewDef; if (! pNames->Insert(pItem)) { - DBG_ERROR(" !!!! ACHTUNG !!!! Fehler beim einf�gen eines namens!"); + OSL_FAIL(" !!!! ACHTUNG !!!! Fehler beim einf�gen eines namens!"); delete pNewDef; pFatherDef = NULL; } @@ -1435,7 +1435,7 @@ BOOL TestToolObj::ReadNamesBin( String Filename, CNames *&pSIds, CNames *&pContr { if (!pFatherDef) { - DBG_ERROR( "Internal Error: Erster Kurzname mu� mit * beginnen. �berspringe." ); + OSL_FAIL( "Internal Error: Erster Kurzname mu� mit * beginnen. �berspringe." ); } else { @@ -1443,7 +1443,7 @@ BOOL TestToolObj::ReadNamesBin( String Filename, CNames *&pSIds, CNames *&pContr if (! pFatherDef->SonInsert(pNewDef)) { delete pNewDef; - DBG_ERROR(" !!!! ACHTUNG !!!! Fehler beim einf�gen eines namens!"); + OSL_FAIL(" !!!! ACHTUNG !!!! Fehler beim einf�gen eines namens!"); } } } @@ -3759,7 +3759,7 @@ BOOL TestToolObj::ReturnResults( SvStream *pIn ) pRetStream->Read( nId ); else { - DBG_ERROR( "truncated input stream" ); + OSL_FAIL( "truncated input stream" ); } } diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index db185b2e6a94..a84bef5df8df 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -1628,7 +1628,7 @@ void ModulWindowLayout::DockaWindow( DockingWindow* pDockingWindow ) } #ifdef DBG_UTIL else - DBG_ERROR( "Wer will sich denn hier andocken ?" ); + OSL_FAIL( "Wer will sich denn hier andocken ?" ); #endif } diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx index 2c8b1949d64c..f52b3253dbef 100644 --- a/basctl/source/basicide/bastype3.cxx +++ b/basctl/source/basicide/bastype3.cxx @@ -127,7 +127,7 @@ void BasicTreeListBox::RequestingChilds( SvLBoxEntry* pEntry ) } else { - DBG_ERROR( "BasicTreeListBox::RequestingChilds: Error loading library!" ); + OSL_FAIL( "BasicTreeListBox::RequestingChilds: Error loading library!" ); } } } @@ -140,7 +140,7 @@ void BasicTreeListBox::RequestingChilds( SvLBoxEntry* pEntry ) ImpCreateLibSubSubEntriesInVBAMode( pEntry, aDocument, aLibName ); } else { - DBG_ERROR( "BasicTreeListBox::RequestingChilds: Unknown Type!" ); + OSL_FAIL( "BasicTreeListBox::RequestingChilds: Unknown Type!" ); } } @@ -263,7 +263,7 @@ SbxVariable* BasicTreeListBox::FindVariable( SvLBoxEntry* pEntry ) } default: { - DBG_ERROR( "FindVariable: Unbekannter Typ!" ); + OSL_FAIL( "FindVariable: Unbekannter Typ!" ); pVar = 0; } break; @@ -365,7 +365,7 @@ BasicEntryDescriptor BasicTreeListBox::GetEntryDescriptor( SvLBoxEntry* pEntry ) break; default: { - DBG_ERROR( "GetEntryDescriptor: Unbekannter Typ!" ); + OSL_FAIL( "GetEntryDescriptor: Unbekannter Typ!" ); eType = OBJ_TYPE_UNKNOWN; } break; diff --git a/basctl/source/basicide/localizationmgr.cxx b/basctl/source/basicide/localizationmgr.cxx index c5eeaa9eb902..afc47d502150 100644 --- a/basctl/source/basicide/localizationmgr.cxx +++ b/basctl/source/basicide/localizationmgr.cxx @@ -762,7 +762,7 @@ void LocalizationMgr::handleSetDefaultLocale( Locale aLocale ) } catch(IllegalArgumentException&) { - DBG_ERROR( "LocalizationMgr::handleSetDefaultLocale: Invalid locale" ); + OSL_FAIL( "LocalizationMgr::handleSetDefaultLocale: Invalid locale" ); } // update locale toolbar @@ -782,7 +782,7 @@ void LocalizationMgr::handleSetCurrentLocale( ::com::sun::star::lang::Locale aLo } catch(IllegalArgumentException&) { - DBG_ERROR( "LocalizationMgr::handleSetCurrentLocale: Invalid locale" ); + OSL_FAIL( "LocalizationMgr::handleSetCurrentLocale: Invalid locale" ); } // update locale toolbar diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index ff894606e74d..d250b70e070e 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -1266,7 +1266,7 @@ void LibPage::ExportAsPackage( const String& aLibName ) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.SimpleFileAccess" ) ) ), UNO_QUERY ); if( !xSFA.is() ) { - DBG_ERROR( "No simpleFileAccess" ); + OSL_FAIL( "No simpleFileAccess" ); return; } diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx index 5bcd4f4850c5..47eed75e88eb 100644 --- a/basctl/source/basicide/moduldlg.cxx +++ b/basctl/source/basicide/moduldlg.cxx @@ -553,7 +553,7 @@ IMPL_LINK( OrganizeDialog, ActivatePageHdl, TabControl *, pTabCtrl ) ((LibPage*)pNewTabPage)->SetTabDlg( this ); } break; - default: DBG_ERROR( "PageHdl: Unbekannte ID!" ); + default: OSL_FAIL( "PageHdl: Unbekannte ID!" ); } DBG_ASSERT( pNewTabPage, "Keine Page!" ); pTabCtrl->SetTabPage( nId, pNewTabPage ); diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index f4519a7496c4..5b07d0b812a6 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -130,7 +130,7 @@ void DlgEditor::ShowDialog() } catch( UnknownPropertyException& ) { - DBG_ERROR( "DlgEditor::ShowDialog(): No ResourceResolver property" ); + OSL_FAIL( "DlgEditor::ShowDialog(): No ResourceResolver property" ); } } diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx index a6d29fc5f464..ed6b49f130c1 100644 --- a/basctl/source/dlged/propbrw.cxx +++ b/basctl/source/dlged/propbrw.cxx @@ -161,7 +161,7 @@ PropBrw::PropBrw( const Reference< XMultiServiceFactory >& _xORB, SfxBindings* _ } catch (Exception&) { - DBG_ERROR("PropBrw::PropBrw: could not create/initialize my frame!"); + OSL_FAIL("PropBrw::PropBrw: could not create/initialize my frame!"); m_xMeAsFrame.clear(); } @@ -236,7 +236,7 @@ void PropBrw::ImplReCreateController() } catch (Exception&) { - DBG_ERROR("PropBrw::PropBrw: could not create/initialize the browser controller!"); + OSL_FAIL("PropBrw::PropBrw: could not create/initialize the browser controller!"); try { ::comphelper::disposeComponent(m_xBrowserController); diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index c971e26d6aed..18f1fa122562 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -1510,7 +1510,7 @@ void SfxConfigGroupListBox_Impl::RequestingChilds( SvLBoxEntry *pEntry ) } default: - DBG_ERROR( "Falscher Gruppentyp!" ); + OSL_FAIL( "Falscher Gruppentyp!" ); break; } } diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx index 09bb03b22d22..6fee34f67ca6 100644 --- a/cui/source/customize/selector.cxx +++ b/cui/source/customize/selector.cxx @@ -953,7 +953,7 @@ void SvxConfigGroupListBox_Impl::RequestingChilds( SvLBoxEntry *pEntry ) } default: - DBG_ERROR( "Falscher Gruppentyp!" ); + OSL_FAIL( "Falscher Gruppentyp!" ); break; } } diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index 9a31c62a2ffd..0e67419122ce 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -1058,7 +1058,7 @@ IMPL_LINK( TPGalleryThemeProperties, ClickSearchHdl, void *, EMPTYARG ) catch(IllegalArgumentException) { #ifdef DBG_UTIL - DBG_ERROR( "Folder picker failed with illegal arguments" ); + OSL_FAIL( "Folder picker failed with illegal arguments" ); #endif } } diff --git a/cui/source/dialogs/cuigrfflt.cxx b/cui/source/dialogs/cuigrfflt.cxx index cc5981f2ef97..82e95178a2bb 100644 --- a/cui/source/dialogs/cuigrfflt.cxx +++ b/cui/source/dialogs/cuigrfflt.cxx @@ -447,7 +447,7 @@ Graphic GraphicFilterEmboss::GetFilteredGraphic( const Graphic& rGraphic, switch( maCtlLight.GetActualRP() ) { - default: DBG_ERROR("svx::GraphicFilterEmboss::GetFilteredGraphic(), unknown Reference Point!" ); + default: OSL_FAIL("svx::GraphicFilterEmboss::GetFilteredGraphic(), unknown Reference Point!" ); case( RP_LT ): nAzim = 4500, nElev = 4500; break; case( RP_MT ): nAzim = 9000, nElev = 4500; break; case( RP_RT ): nAzim = 13500, nElev = 4500; break; diff --git a/cui/source/dialogs/dlgname.cxx b/cui/source/dialogs/dlgname.cxx index c5941a6f8419..e624b0ef2d5d 100644 --- a/cui/source/dialogs/dlgname.cxx +++ b/cui/source/dialogs/dlgname.cxx @@ -223,7 +223,7 @@ void SvxMessDialog::SetButtonText( USHORT nBtnId, const String& rNewTxt ) break; default: - DBG_ERROR( "Falsche Button-Nummer!!!" ); + OSL_FAIL( "Falsche Button-Nummer!!!" ); } } diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index 299673965ce1..01d01525bc1f 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -906,7 +906,7 @@ namespace svx case HHC::eRubyHangulAbove: m_pHangulAbove->Check(); break; case HHC::eRubyHangulBelow: m_pHangulBelow->Check(); break; default: - DBG_ERROR( "HangulHanjaConversionDialog::SetConversionFormat: unknown type!" ); + OSL_FAIL( "HangulHanjaConversionDialog::SetConversionFormat: unknown type!" ); } } @@ -928,7 +928,7 @@ namespace svx if ( m_pHangulBelow->IsChecked() ) return HHC::eRubyHangulBelow; - DBG_ERROR( "HangulHanjaConversionDialog::GetConversionFormat: no radio checked?" ); + OSL_FAIL( "HangulHanjaConversionDialog::GetConversionFormat: no radio checked?" ); return HHC::eSimpleConversion; } diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx index cdf0c492c24c..0b4abd3a03f9 100644 --- a/cui/source/dialogs/hltpbase.cxx +++ b/cui/source/dialogs/hltpbase.cxx @@ -532,7 +532,7 @@ BOOL SvxHyperlinkTabPageBase::FileExists( const INetURLObject& rURL ) } catch( ... ) { - DBG_ERROR( "FileExists: ucb error" ); + OSL_FAIL( "FileExists: ucb error" ); } } diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index e12ad0ddfce1..041ef64e5d26 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -676,7 +676,7 @@ short SvInsertAppletDialog::Execute() } catch ( uno::Exception& ) { - DBG_ERROR( "No Applet!" ); + OSL_FAIL( "No Applet!" ); } } else @@ -726,7 +726,7 @@ short SvInsertAppletDialog::Execute() } catch ( uno::Exception& ) { - DBG_ERROR( "No Applet!" ); + OSL_FAIL( "No Applet!" ); } } } @@ -909,7 +909,7 @@ short SfxInsertFloatingFrameDialog::Execute() } catch ( uno::Exception& ) { - DBG_ERROR( "No IFrame!" ); + OSL_FAIL( "No IFrame!" ); } } else @@ -996,7 +996,7 @@ short SfxInsertFloatingFrameDialog::Execute() } catch ( uno::Exception& ) { - DBG_ERROR( "No IFrame!" ); + OSL_FAIL( "No IFrame!" ); } } } diff --git a/cui/source/dialogs/showcols.cxx b/cui/source/dialogs/showcols.cxx index e43d8b5dd8b3..f5b9affb4d80 100644 --- a/cui/source/dialogs/showcols.cxx +++ b/cui/source/dialogs/showcols.cxx @@ -83,7 +83,7 @@ IMPL_LINK( FmShowColsDialog, OnClickedOk, Button*, EMPTYARG ) } catch(...) { - DBG_ERROR("FmShowColsDialog::OnClickedOk Exception occurred!"); + OSL_FAIL("FmShowColsDialog::OnClickedOk Exception occurred!"); } } } @@ -121,7 +121,7 @@ void FmShowColsDialog::SetColumns(const ::com::sun::star::uno::Reference< ::com: } catch(...) { - DBG_ERROR("FmShowColsDialog::SetColumns Exception occurred!"); + OSL_FAIL("FmShowColsDialog::SetColumns Exception occurred!"); } // if the col is hidden, put it into the list diff --git a/cui/source/dialogs/zoom.cxx b/cui/source/dialogs/zoom.cxx index fb5c9c2bf8d9..42eda26ff2ff 100644 --- a/cui/source/dialogs/zoom.cxx +++ b/cui/source/dialogs/zoom.cxx @@ -139,7 +139,7 @@ void SvxZoomDialog::SetButtonText( USHORT nBtnId, const String& rNewTxt ) break; default: - DBG_ERROR( "wrong button number" ); + OSL_FAIL( "wrong button number" ); } } @@ -162,7 +162,7 @@ void SvxZoomDialog::HideButton( USHORT nBtnId ) break; default: - DBG_ERROR( "Falsche Button-Nummer!!!" ); + OSL_FAIL( "Falsche Button-Nummer!!!" ); } } @@ -424,7 +424,7 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutUserHdl, RadioButton *, pBtn ) } else { - DBG_ERROR( "Wrong Button" ); + OSL_FAIL( "Wrong Button" ); return 0; } @@ -506,7 +506,7 @@ IMPL_LINK( SvxZoomDialog, OKHdl, Button *, pBtn ) } else { - DBG_ERROR( "Wrong Button" ); + OSL_FAIL( "Wrong Button" ); return 0; } pOutSet = new SfxItemSet( rSet ); diff --git a/cui/source/options/optasian.cxx b/cui/source/options/optasian.cxx index 45e28014db95..f04a50dc076f 100644 --- a/cui/source/options/optasian.cxx +++ b/cui/source/options/optasian.cxx @@ -225,7 +225,7 @@ BOOL SvxAsianLayoutPage::FillItemSet( SfxItemSet& ) } catch(Exception&) { - DBG_ERROR("exception in XForbiddenCharacters"); + OSL_FAIL("exception in XForbiddenCharacters"); } } eLastUsedLanguageTypeForForbiddenCharacters = aLanguageLB.GetSelectLanguage(); @@ -359,7 +359,7 @@ IMPL_LINK(SvxAsianLayoutPage, LanguageHdl, SvxLanguageBox*, EMPTYARG ) } catch(Exception&) { - DBG_ERROR("exception in XForbiddenCharacters"); + OSL_FAIL("exception in XForbiddenCharacters"); } } } @@ -422,7 +422,7 @@ IMPL_LINK(SvxAsianLayoutPage, ModifyHdl, Edit*, pEdit) } catch(Exception&) { - DBG_ERROR("exception in XForbiddenCharacters"); + OSL_FAIL("exception in XForbiddenCharacters"); } } pImpl->aConfig.SetStartEndChars( aLocale, bEnable ? &sStart : 0, bEnable ? &sEnd : 0); diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index b187dc698993..138d67e30f39 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -940,7 +940,7 @@ BOOL OfaViewTabPage::FillItemSet( SfxItemSet& ) case 1: eSet = SFX_SYMBOLS_SIZE_SMALL; break; case 2: eSet = SFX_SYMBOLS_SIZE_LARGE; break; default: - DBG_ERROR( "OfaViewTabPage::FillItemSet(): This state of aIconSizeLB should not be possible!" ); + OSL_FAIL( "OfaViewTabPage::FillItemSet(): This state of aIconSizeLB should not be possible!" ); } aMiscOptions.SetSymbolsSize( eSet ); } diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 7b352ed2f5ef..caa0f8c66776 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1845,7 +1845,7 @@ IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, pBtn ) case EID_NUM_POST_BREAK : nRID = STR_NUM_POST_BREAK_DLG; break; case EID_NUM_MIN_WORDLEN: nRID = STR_NUM_MIN_WORDLEN_DLG; break; default: - DBG_ERROR( "unexpected case" ); + OSL_FAIL( "unexpected case" ); } OptionsBreakSet aDlg( this, nRID ); @@ -1865,7 +1865,7 @@ IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, pBtn ) } else { - DBG_ERROR( "pBtn unexpected value" ); + OSL_FAIL( "pBtn unexpected value" ); } return 0; @@ -1901,7 +1901,7 @@ IMPL_LINK( SvxLinguTabPage, SelectHdl_Impl, SvxCheckListBox *, pBox ) } else { - DBG_ERROR( "pBox unexpected value" ); + OSL_FAIL( "pBox unexpected value" ); } return 0; @@ -2122,7 +2122,7 @@ IMPL_LINK( SvxEditModulesDlg, SelectHdl_Impl, SvxCheckListBox *, pBox ) } else { - DBG_ERROR( "pBox unexpected value" ); + OSL_FAIL( "pBox unexpected value" ); } return 0; @@ -2467,7 +2467,7 @@ IMPL_LINK( SvxEditModulesDlg, ClickHdl_Impl, PushButton *, pBtn ) } else { - DBG_ERROR( "pBtn unexpected value" ); + OSL_FAIL( "pBtn unexpected value" ); } return 0; diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx index 37c728a6d602..625f9f6fed90 100644 --- a/cui/source/options/optsave.cxx +++ b/cui/source/options/optsave.cxx @@ -495,7 +495,7 @@ void SfxSaveTabPage::Reset( const SfxItemSet& ) case APP_IMPRESS : sReplace = C2U("com.sun.star.presentation.PresentationDocument");break; case APP_DRAW : sReplace = C2U("com.sun.star.drawing.DrawingDocument");break; case APP_MATH : sReplace = C2U("com.sun.star.formula.FormulaProperties");break; - default: DBG_ERROR("illegal user data"); + default: OSL_FAIL("illegal user data"); } String sTmp(sCommand); sTmp.SearchAndReplaceAscii("%1", sReplace); diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 4a54bfd4a42b..0fb8a89b667f 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -1692,7 +1692,7 @@ void OfaTreeOptionsDialog::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet default: { - DBG_ERROR( "Unhandled option in ApplyItemSet" ); + OSL_FAIL( "Unhandled option in ApplyItemSet" ); } break; } diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index ce9bdc84f5da..04583b55b0fb 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -2151,7 +2151,7 @@ IMPL_LINK( OfaQuoteTabPage, QuoteHdl, PushButton*, pBtn ) cDlg = pAutoCorrect->GetQuote('\"',FALSE,eLang); //add by BerryJia for Bug95846 Time:2002-8-13 15:50 break; default: - DBG_ERROR("svx::OfaQuoteTabPage::QuoteHdl(), how to initialize cDlg?" ); + OSL_FAIL("svx::OfaQuoteTabPage::QuoteHdl(), how to initialize cDlg?" ); cDlg = 0; break; diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index b60c158f27aa..fe8107ef8b85 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -175,7 +175,7 @@ void _SfxMacroTabPage::EnableButtons( const String& rLangName ) sEventMacro = ((SvLBoxString*)pE->GetItem( LB_MACROS_ITEMPOS ))->GetText(); if ( rLangName.EqualsAscii("JavaScript") ) { - DBG_ERROR( "_SfxMacroTabPage::EnableButtons(): this is not an up to date usage!" ); + OSL_FAIL( "_SfxMacroTabPage::EnableButtons(): this is not an up to date usage!" ); } else { diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index ee7f6256a66d..afabe8b31d02 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -268,7 +268,7 @@ BOOL SvxStdParagraphTabPage::FillItemSet( SfxItemSet& rOutSet ) break; default: - DBG_ERROR( "unbekannter Type fuer Zeilenabstand." ); + OSL_FAIL( "unbekannter Type fuer Zeilenabstand." ); break; } eState = GetItemSet().GetItemState( nWhich ); diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx index 802440a55464..7a53da94b26c 100644 --- a/cui/source/tabpages/swpossizetabpage.cxx +++ b/cui/source/tabpages/swpossizetabpage.cxx @@ -1787,7 +1787,7 @@ void SvxSwPosSizeTabPage::SetView( const SdrView* pSdrView ) m_pSdrView = pSdrView; if(!m_pSdrView) { - DBG_ERROR("No SdrView* set"); + OSL_FAIL("No SdrView* set"); return; } @@ -1858,7 +1858,7 @@ void SvxSwPosSizeTabPage::SetView( const SdrView* pSdrView ) ( eKind==OBJ_TEXT || eKind==OBJ_TITLETEXT || eKind==OBJ_OUTLINETEXT) && ( (SdrTextObj*) pObj )->HasText() ) { - DBG_ERROR("AutoWidth/AutoHeight should be enabled"); + OSL_FAIL("AutoWidth/AutoHeight should be enabled"); } } #endif diff --git a/cui/source/tabpages/textattr.cxx b/cui/source/tabpages/textattr.cxx index cda0759de37e..8a4a59fa238f 100644 --- a/cui/source/tabpages/textattr.cxx +++ b/cui/source/tabpages/textattr.cxx @@ -418,7 +418,7 @@ BOOL SvxTextAttrPage::FillItemSet( SfxItemSet& rAttrs) switch( eState ) { default: ; //prevent warning - DBG_ERROR( "svx::SvxTextAttrPage::FillItemSet(), unhandled state!" ); + OSL_FAIL( "svx::SvxTextAttrPage::FillItemSet(), unhandled state!" ); case STATE_NOCHECK: eFTS = SDRTEXTFIT_NONE; break; case STATE_CHECK: eFTS = SDRTEXTFIT_AUTOFIT; break; } diff --git a/extensions/source/abpilot/abspilot.cxx b/extensions/source/abpilot/abspilot.cxx index 13ddcf175909..826657b2a283 100644 --- a/extensions/source/abpilot/abspilot.cxx +++ b/extensions/source/abpilot/abspilot.cxx @@ -319,7 +319,7 @@ namespace abp case AST_EVOLUTION_GROUPWISE: case AST_EVOLUTION_LDAP : pGuess = "Personal"; break; default: - DBG_ERROR( "OAddessBookSourcePilot::implDefaultTableName: unhandled case!" ); + OSL_FAIL( "OAddessBookSourcePilot::implDefaultTableName: unhandled case!" ); return; } const ::rtl::OUString sGuess = ::rtl::OUString::createFromAscii( pGuess ); @@ -398,7 +398,7 @@ namespace abp break; case AST_INVALID: - DBG_ERROR( "OAddessBookSourcePilot::implCreateDataSource: illegal data source type!" ); + OSL_FAIL( "OAddessBookSourcePilot::implCreateDataSource: illegal data source type!" ); break; } m_eNewDataSourceType = m_aSettings.eType; @@ -437,7 +437,7 @@ namespace abp return new FinalPage( this ); default: - DBG_ERROR("OAddessBookSourcePilot::createPage: invalid state!"); + OSL_FAIL("OAddessBookSourcePilot::createPage: invalid state!"); return NULL; } } diff --git a/extensions/source/abpilot/admininvokationimpl.cxx b/extensions/source/abpilot/admininvokationimpl.cxx index 622c913201d0..3512e99cce86 100644 --- a/extensions/source/abpilot/admininvokationimpl.cxx +++ b/extensions/source/abpilot/admininvokationimpl.cxx @@ -123,7 +123,7 @@ namespace abp } catch(const Exception&) { - DBG_ERROR("OAdminDialogInvokation::invokeAdministration: caught an exception while executing the dialog!"); + OSL_FAIL("OAdminDialogInvokation::invokeAdministration: caught an exception while executing the dialog!"); } return sal_False; } diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx index acce49187c94..e0073cad0481 100644 --- a/extensions/source/abpilot/datasourcehandling.cxx +++ b/extensions/source/abpilot/datasourcehandling.cxx @@ -145,7 +145,7 @@ namespace abp } catch(const Exception&) { - DBG_ERROR( "lcl_implCreateAndSetURL: caught an exception while creating the data source!" ); + OSL_FAIL( "lcl_implCreateAndSetURL: caught an exception while creating the data source!" ); } return aReturn; @@ -217,7 +217,7 @@ namespace abp } catch( const Exception& ) { - DBG_ERROR( "ODataSourceContext::ODataSourceContext: caught an exception!" ); + OSL_FAIL( "ODataSourceContext::ODataSourceContext: caught an exception!" ); } } @@ -395,7 +395,7 @@ namespace abp } catch(const Exception&) { - DBG_ERROR( "ODataSource::registerDataSource: caught an exception while creating the data source!" ); + OSL_FAIL( "ODataSource::registerDataSource: caught an exception while creating the data source!" ); } } //--------------------------------------------------------------------- @@ -412,7 +412,7 @@ namespace abp } catch(const Exception&) { - DBG_ERROR( "ODataSource::registerDataSource: caught an exception while creating the data source!" ); + OSL_FAIL( "ODataSource::registerDataSource: caught an exception while creating the data source!" ); } } @@ -444,7 +444,7 @@ namespace abp } catch(const Exception&) { - DBG_ERROR( "ODataSource::remove: caught an exception while creating the data source!" ); + OSL_FAIL( "ODataSource::remove: caught an exception while creating the data source!" ); } } @@ -483,7 +483,7 @@ namespace abp m_pImpl->aTables.clear(); if ( !isConnected() ) { - DBG_ERROR( "ODataSource::getTableNames: not connected!" ); + OSL_FAIL( "ODataSource::getTableNames: not connected!" ); } else { @@ -564,7 +564,7 @@ namespace abp catch( const SQLException& e ) { aError <<= e; } catch( const Exception& ) { - DBG_ERROR( "ODataSource::connect: caught a generic exception!" ); + OSL_FAIL( "ODataSource::connect: caught a generic exception!" ); } // ................................................................ @@ -593,7 +593,7 @@ namespace abp } catch( const Exception& ) { - DBG_ERROR( "ODataSource::connect: caught an exception while trying to display the error!" ); + OSL_FAIL( "ODataSource::connect: caught an exception while trying to display the error!" ); } } diff --git a/extensions/source/abpilot/fieldmappingimpl.cxx b/extensions/source/abpilot/fieldmappingimpl.cxx index 88c6c4747d71..9c4c3b2e4bec 100644 --- a/extensions/source/abpilot/fieldmappingimpl.cxx +++ b/extensions/source/abpilot/fieldmappingimpl.cxx @@ -148,7 +148,7 @@ namespace abp } catch(const Exception&) { - DBG_ERROR("fieldmapping::invokeDialog: caught an exception while executing the dialog!"); + OSL_FAIL("fieldmapping::invokeDialog: caught an exception while executing the dialog!"); } return sal_False; } @@ -228,20 +228,20 @@ namespace abp aDriverFieldAliasing.getNodeValue( sDriverProgrammatic ) >>= sDriverUI; if ( 0 == sDriverUI.getLength() ) { - DBG_ERROR( "fieldmapping::defaultMapping: invalid driver UI column name!"); + OSL_FAIL( "fieldmapping::defaultMapping: invalid driver UI column name!"); } else _rFieldAssignment[ sAddressProgrammatic ] = sDriverUI; } else { - DBG_ERROR( "fieldmapping::defaultMapping: invalid driver programmatic name!" ); + OSL_FAIL( "fieldmapping::defaultMapping: invalid driver programmatic name!" ); } } } catch( const Exception& ) { - DBG_ERROR("fieldmapping::defaultMapping: code is assumed to throw no exceptions!"); + OSL_FAIL("fieldmapping::defaultMapping: code is assumed to throw no exceptions!"); // the config nodes we're using herein should not do this .... } } diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx index cea0ad955411..6da27ca6a28d 100644 --- a/extensions/source/bibliography/datman.cxx +++ b/extensions/source/bibliography/datman.cxx @@ -121,7 +121,7 @@ Reference< XConnection > getConnection(const ::rtl::OUString& _rURL) catch(Exception eEx) { (void) eEx; // make compiler happy - DBG_ERROR("Exception caught in ODatabaseContext::getRegisteredObject()"); + OSL_FAIL("Exception caught in ODatabaseContext::getRegisteredObject()"); } } // build the connection from the data source @@ -170,7 +170,7 @@ Reference< XConnection > getConnection(const Reference< XInterface > & xRowSe catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("exception in getConnection"); + OSL_FAIL("exception in getConnection"); } return xConn; @@ -629,7 +629,7 @@ DBChangeDialog_Impl::DBChangeDialog_Impl(Window* pParent, BibDataManager* pMan ) catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("Exception in BibDataManager::DBChangeDialog_Impl::DBChangeDialog_Impl"); + OSL_FAIL("Exception in BibDataManager::DBChangeDialog_Impl::DBChangeDialog_Impl"); } @@ -861,7 +861,7 @@ void BibDataManager::InsertFields(const Reference< XFormComponent > & _rxGrid) catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("Exception in BibDataManager::InsertFields"); + OSL_FAIL("Exception in BibDataManager::InsertFields"); } } /* -------------------------------------------------- @@ -897,7 +897,7 @@ Reference< awt::XControlModel > BibDataManager::updateGridModel(const Reference< catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("::updateGridModel: something went wrong !"); + OSL_FAIL("::updateGridModel: something went wrong !"); } @@ -983,7 +983,7 @@ Reference< XForm > BibDataManager::createDatabaseForm(BibDBDescriptor& rDesc) catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("::createDatabaseForm: something went wrong !"); + OSL_FAIL("::createDatabaseForm: something went wrong !"); } @@ -1006,7 +1006,7 @@ Sequence< ::rtl::OUString > BibDataManager::getDataSources() catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("::getDataSources: something went wrong !"); + OSL_FAIL("::getDataSources: something went wrong !"); } @@ -1248,7 +1248,7 @@ void BibDataManager::setActiveDataTable(const ::rtl::OUString& rTable) catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("::setActiveDataTable: something went wrong !"); + OSL_FAIL("::setActiveDataTable: something went wrong !"); } } @@ -1381,7 +1381,7 @@ Reference< awt::XControlModel > BibDataManager::createGridModel(const ::rtl::OUS catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("::createGridModel: something went wrong !"); + OSL_FAIL("::createGridModel: something went wrong !"); } @@ -1503,7 +1503,7 @@ Reference< awt::XControlModel > BibDataManager::loadControlModel( catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("::loadControlModel: something went wrong !"); + OSL_FAIL("::loadControlModel: something went wrong !"); } return xModel; } @@ -1543,7 +1543,7 @@ void BibDataManager::propertyChange(const beans::PropertyChangeEvent& evt) throw catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("::propertyChange: something went wrong !"); + OSL_FAIL("::propertyChange: something went wrong !"); } @@ -1588,7 +1588,7 @@ try catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("Exception in BibDataManager::SetMeAsUidListener"); + OSL_FAIL("Exception in BibDataManager::SetMeAsUidListener"); } @@ -1634,7 +1634,7 @@ try catch(Exception& e ) { (void) e; // make compiler happy - DBG_ERROR("Exception in BibDataManager::RemoveMeAsUidListener"); + OSL_FAIL("Exception in BibDataManager::RemoveMeAsUidListener"); } diff --git a/extensions/source/bibliography/formcontrolcontainer.cxx b/extensions/source/bibliography/formcontrolcontainer.cxx index 665ced0242c5..ee45d2b58a99 100644 --- a/extensions/source/bibliography/formcontrolcontainer.cxx +++ b/extensions/source/bibliography/formcontrolcontainer.cxx @@ -120,7 +120,7 @@ namespace bib catch( const Exception& e) { (void) e; // make compiler happy - DBG_ERROR( "FormControlContainer::implSetDesignMode: caught an exception!" ); + OSL_FAIL( "FormControlContainer::implSetDesignMode: caught an exception!" ); } } diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx index 659e4fdc7b35..4655075e052c 100644 --- a/extensions/source/bibliography/framectr.cxx +++ b/extensions/source/bibliography/framectr.cxx @@ -410,7 +410,7 @@ sal_Bool BibFrameController_Impl::SaveModified(const Reference< form::runtime::X } catch(Exception&) { - DBG_ERROR("SaveModified: Exception occurred!"); + OSL_FAIL("SaveModified: Exception occurred!"); } } return bResult; @@ -464,7 +464,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen } catch(const Exception&) { - DBG_ERROR("Exception catched while changing the data source"); + OSL_FAIL("Exception catched while changing the data source"); } } } @@ -554,7 +554,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen } catch( const uno::Exception& ) { - DBG_ERROR( "BibFrameController_Impl::dispatch: caught an exception!" ); + OSL_FAIL( "BibFrameController_Impl::dispatch: caught an exception!" ); } sal_uInt16 nCount = aStatusListeners.Count(); @@ -598,7 +598,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen } catch(Exception&) { - DBG_ERROR("Exception in last() or moveToInsertRow()"); + OSL_FAIL("Exception in last() or moveToInsertRow()"); } } } @@ -658,7 +658,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen } catch(Exception&) { - DBG_ERROR("DeleteRecord : exception caught !"); + OSL_FAIL("DeleteRecord : exception caught !"); } } } diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx index d49d8b81737c..27adec5f5c80 100644 --- a/extensions/source/bibliography/general.cxx +++ b/extensions/source/bibliography/general.cxx @@ -183,7 +183,7 @@ void BibPosListener::cursorMoved(const lang::EventObject& /*aEvent*/) throw( uno catch(Exception& rEx) { (void) rEx; // make compiler happy - DBG_ERROR("BibPosListener::positioned: something went wrong !"); + OSL_FAIL("BibPosListener::positioned: something went wrong !"); } } @@ -569,7 +569,7 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl( catch(Exception& rEx) { (void) rEx; // make compiler happy - DBG_ERROR("BibGeneralPage::AddXControl: something went wrong !"); + OSL_FAIL("BibGeneralPage::AddXControl: something went wrong !"); } return xCtrModel; } diff --git a/extensions/source/dbpilots/commonpagesdbp.cxx b/extensions/source/dbpilots/commonpagesdbp.cxx index 1a5f7fb0aab6..c8b175839435 100644 --- a/extensions/source/dbpilots/commonpagesdbp.cxx +++ b/extensions/source/dbpilots/commonpagesdbp.cxx @@ -156,7 +156,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OTableSelectionPage::initializePage: caught an exception!"); + OSL_FAIL("OTableSelectionPage::initializePage: caught an exception!"); } } @@ -191,7 +191,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OTableSelectionPage::commitPage: caught an exception!"); + OSL_FAIL("OTableSelectionPage::commitPage: caught an exception!"); } return sal_True; @@ -306,7 +306,7 @@ namespace dbp } else { - DBG_ERROR("OTableSelectionPage::implFillTables: invalid data source object returned by the context"); + OSL_FAIL("OTableSelectionPage::implFillTables: invalid data source object returned by the context"); } } } @@ -315,7 +315,7 @@ namespace dbp catch(SQLException& e) { aSQLException <<= e; } catch (Exception&) { - DBG_ERROR("OTableSelectionPage::implFillTables: could not fill the table list!"); + OSL_FAIL("OTableSelectionPage::implFillTables: could not fill the table list!"); } } @@ -347,7 +347,7 @@ namespace dbp catch(SQLException& e) { aSQLException <<= e; } catch (Exception&) { - DBG_ERROR("OTableSelectionPage::implFillTables: could not fill the table list!"); + OSL_FAIL("OTableSelectionPage::implFillTables: could not fill the table list!"); } } @@ -388,7 +388,7 @@ namespace dbp } catch (Exception&) { - DBG_ERROR("OTableSelectionPage::implCollectDatasource: could not collect the data source names!"); + OSL_FAIL("OTableSelectionPage::implCollectDatasource: could not collect the data source names!"); } } diff --git a/extensions/source/dbpilots/controlwizard.cxx b/extensions/source/dbpilots/controlwizard.cxx index 408a45dda260..4097c4016565 100644 --- a/extensions/source/dbpilots/controlwizard.cxx +++ b/extensions/source/dbpilots/controlwizard.cxx @@ -246,7 +246,7 @@ namespace dbp } catch(const Exception&) { - DBG_ERROR("OControlWizardPage::initializePage: caught an exception!"); + OSL_FAIL("OControlWizardPage::initializePage: caught an exception!"); } INetURLObject aURL( sDataSource ); @@ -310,7 +310,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OControlWizard::activate: could not obtain the class id!"); + OSL_FAIL("OControlWizard::activate: could not obtain the class id!"); } if (!approveControl(nClassId)) { @@ -434,7 +434,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OControlWizard::implDeterminePage: caught an exception!"); + OSL_FAIL("OControlWizard::implDeterminePage: caught an exception!"); } } @@ -456,7 +456,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OControlWizard::implGetDSContext: invalid database context!"); + OSL_FAIL("OControlWizard::implGetDSContext: invalid database context!"); } } @@ -476,7 +476,7 @@ namespace dbp } catch(const Exception&) { - DBG_ERROR("OControlWizard::getFormConnection: caught an exception!"); + OSL_FAIL("OControlWizard::getFormConnection: caught an exception!"); } return xConn; } @@ -507,7 +507,7 @@ namespace dbp } catch(const Exception&) { - DBG_ERROR("OControlWizard::setFormConnection: caught an exception!"); + OSL_FAIL("OControlWizard::setFormConnection: caught an exception!"); } } @@ -646,7 +646,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OControlWizard::initContext: unexpected exception while gathering column information!"); + OSL_FAIL("OControlWizard::initContext: unexpected exception while gathering column information!"); } m_aContext.aTypes.insert(OControlWizardContext::TNameTypeMap::value_type(*pBegin,nFieldType)); } @@ -657,7 +657,7 @@ namespace dbp catch(SQLException& e) { aSQLException <<= e; } catch(Exception&) { - DBG_ERROR("OControlWizard::initContext: could not retrieve the control context (caught an exception)!"); + OSL_FAIL("OControlWizard::initContext: could not retrieve the control context (caught an exception)!"); } ::comphelper::disposeComponent(xStatement); @@ -710,7 +710,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OControlWizard::commitControlSettings: could not commit the basic control settings!"); + OSL_FAIL("OControlWizard::commitControlSettings: could not commit the basic control settings!"); } } @@ -735,7 +735,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OControlWizard::initControlSettings: could not retrieve the basic control settings!"); + OSL_FAIL("OControlWizard::initControlSettings: could not retrieve the basic control settings!"); } } diff --git a/extensions/source/dbpilots/dbptools.cxx b/extensions/source/dbpilots/dbptools.cxx index 6bf34b177643..47836495b585 100644 --- a/extensions/source/dbpilots/dbptools.cxx +++ b/extensions/source/dbpilots/dbptools.cxx @@ -61,7 +61,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("::dbp::disambiguateName: something went (strangely) wrong!"); + OSL_FAIL("::dbp::disambiguateName: something went (strangely) wrong!"); } } diff --git a/extensions/source/dbpilots/groupboxwiz.cxx b/extensions/source/dbpilots/groupboxwiz.cxx index 66c97e59b83e..acda08475eed 100644 --- a/extensions/source/dbpilots/groupboxwiz.cxx +++ b/extensions/source/dbpilots/groupboxwiz.cxx @@ -177,7 +177,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OGroupBoxWizard::createRadios: caught an exception while creating the radio shapes!"); + OSL_FAIL("OGroupBoxWizard::createRadios: caught an exception while creating the radio shapes!"); } } diff --git a/extensions/source/dbpilots/listcombowizard.cxx b/extensions/source/dbpilots/listcombowizard.cxx index 0a93ad8c22d1..e313ee92049c 100644 --- a/extensions/source/dbpilots/listcombowizard.cxx +++ b/extensions/source/dbpilots/listcombowizard.cxx @@ -222,7 +222,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OListComboWizard::implApplySettings: could not set the property values for the listbox!"); + OSL_FAIL("OListComboWizard::implApplySettings: could not set the property values for the listbox!"); } } @@ -353,7 +353,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OContentTableSelection::initializePage: could not retrieve the table names!"); + OSL_FAIL("OContentTableSelection::initializePage: could not retrieve the table names!"); } m_aSelectTable.SelectEntry(getSettings().sListContentTable); diff --git a/extensions/source/dbpilots/optiongrouplayouter.cxx b/extensions/source/dbpilots/optiongrouplayouter.cxx index e1de8e380b85..9db495891604 100644 --- a/extensions/source/dbpilots/optiongrouplayouter.cxx +++ b/extensions/source/dbpilots/optiongrouplayouter.cxx @@ -78,14 +78,14 @@ namespace dbp Reference< XShapes > xPageShapes(_rContext.xDrawPage, UNO_QUERY); if (!xPageShapes.is()) { - DBG_ERROR("OOptionGroupLayouter::OOptionGroupLayouter: missing the XShapes interface for the page!"); + OSL_FAIL("OOptionGroupLayouter::OOptionGroupLayouter: missing the XShapes interface for the page!"); return; } Reference< XMultiServiceFactory > xDocFactory(_rContext.xDocumentModel, UNO_QUERY); if (!xDocFactory.is()) { - DBG_ERROR("OOptionGroupLayouter::OOptionGroupLayouter: no document service factory!"); + OSL_FAIL("OOptionGroupLayouter::OOptionGroupLayouter: no document service factory!"); return; } @@ -196,7 +196,7 @@ namespace dbp } catch(Exception&) { - DBG_ERROR("OOptionGroupLayouter::doLayout: caught an exception while grouping the shapes!"); + OSL_FAIL("OOptionGroupLayouter::doLayout: caught an exception while grouping the shapes!"); } } diff --git a/extensions/source/plugin/aqua/sysplug.cxx b/extensions/source/plugin/aqua/sysplug.cxx index f4896f119382..6b4c93202b85 100644 --- a/extensions/source/plugin/aqua/sysplug.cxx +++ b/extensions/source/plugin/aqua/sysplug.cxx @@ -684,7 +684,7 @@ NPError MacPluginComm::NPP_SetValue( NPP instance, NPNVariable variable, void *s //-------------------------------------------------------------------------------------------------- void * MacPluginComm::NPP_GetJavaClass() { - DBG_ERROR( "no java class available!" ); + OSL_FAIL( "no java class available!" ); return 0; } diff --git a/extensions/source/plugin/base/plctrl.cxx b/extensions/source/plugin/base/plctrl.cxx index 4498ecedcb3b..dba569c1a1db 100644 --- a/extensions/source/plugin/base/plctrl.cxx +++ b/extensions/source/plugin/base/plctrl.cxx @@ -162,7 +162,7 @@ void PluginControl_Impl::createPeer( const Reference< ::com::sun::star::awt::XTo { if (_xPeer.is()) { - DBG_ERROR( "### Peer is already set!" ); + OSL_FAIL( "### Peer is already set!" ); return; } @@ -190,7 +190,7 @@ void PluginControl_Impl::createPeer( const Reference< ::com::sun::star::awt::XTo } else { - DBG_ERROR( "### cannot get implementation of parent peer!" ); + OSL_FAIL( "### cannot get implementation of parent peer!" ); } getMultiplexer()->setPeer( _xPeerWindow ); diff --git a/extensions/source/plugin/win/sysplug.cxx b/extensions/source/plugin/win/sysplug.cxx index 149dce3067d5..59e62c15188d 100644 --- a/extensions/source/plugin/win/sysplug.cxx +++ b/extensions/source/plugin/win/sysplug.cxx @@ -423,7 +423,7 @@ NPError PluginComm_Impl::NPP_SetValue( NPP instance, NPNVariable variable, void //-------------------------------------------------------------------------------------------------- void * PluginComm_Impl::NPP_GetJavaClass() { - DBG_ERROR( "no java class available!" ); + OSL_FAIL( "no java class available!" ); return 0; } diff --git a/extensions/source/plugin/win/winmgr.cxx b/extensions/source/plugin/win/winmgr.cxx index b754383139a4..23aa94464d02 100644 --- a/extensions/source/plugin/win/winmgr.cxx +++ b/extensions/source/plugin/win/winmgr.cxx @@ -435,7 +435,7 @@ Sequence< PluginDescription > XPluginManager_Impl::impl_getPluginDescriptions(vo } #if OSL_DEBUG_LEVEL > 1 else - DBG_ERROR( "### cannot get MIME type or extensions!" ); + OSL_FAIL( "### cannot get MIME type or extensions!" ); #endif } if (pVersionData) diff --git a/extensions/source/propctrlr/browserlistbox.cxx b/extensions/source/propctrlr/browserlistbox.cxx index fdc9d80dcbc5..f3c0ad6b97de 100644 --- a/extensions/source/propctrlr/browserlistbox.cxx +++ b/extensions/source/propctrlr/browserlistbox.cxx @@ -974,7 +974,7 @@ namespace pcr ) if ( (*search)->second.pLine->getControl().get() == _rxControl.get() ) return sal_uInt16( search - m_aOrderedLines.begin() ); - DBG_ERROR( "OBrowserListBox::impl_getControlPos: invalid control - not part of any of our lines!" ); + OSL_FAIL( "OBrowserListBox::impl_getControlPos: invalid control - not part of any of our lines!" ); return (sal_uInt16)-1; } diff --git a/extensions/source/propctrlr/buttonnavigationhandler.cxx b/extensions/source/propctrlr/buttonnavigationhandler.cxx index 6435da2f763b..db097ce89cfb 100644 --- a/extensions/source/propctrlr/buttonnavigationhandler.cxx +++ b/extensions/source/propctrlr/buttonnavigationhandler.cxx @@ -121,7 +121,7 @@ namespace pcr break; default: - DBG_ERROR( "ButtonNavigationHandler::getPropertyState: cannot handle this property!" ); + OSL_FAIL( "ButtonNavigationHandler::getPropertyState: cannot handle this property!" ); break; } @@ -152,7 +152,7 @@ namespace pcr break; default: - DBG_ERROR( "ButtonNavigationHandler::getPropertyValue: cannot handle this property!" ); + OSL_FAIL( "ButtonNavigationHandler::getPropertyValue: cannot handle this property!" ); break; } diff --git a/extensions/source/propctrlr/cellbindinghandler.cxx b/extensions/source/propctrlr/cellbindinghandler.cxx index 882a319929d3..aa293ce11d0a 100644 --- a/extensions/source/propctrlr/cellbindinghandler.cxx +++ b/extensions/source/propctrlr/cellbindinghandler.cxx @@ -202,7 +202,7 @@ namespace pcr break; // case PROPERTY_ID_CONTROLSOURCE default: - DBG_ERROR( "CellBindingPropertyHandler::actuatingPropertyChanged: did not register for this property!" ); + OSL_FAIL( "CellBindingPropertyHandler::actuatingPropertyChanged: did not register for this property!" ); } for ( ::std::vector< PropertyId >::const_iterator loopAffected = aDependentProperties.begin(); @@ -282,7 +282,7 @@ namespace pcr break; default: - DBG_ERROR( "CellBindingPropertyHandler::getPropertyValue: cannot handle this!" ); + OSL_FAIL( "CellBindingPropertyHandler::getPropertyValue: cannot handle this!" ); break; } return aReturn; @@ -342,7 +342,7 @@ namespace pcr break; default: - DBG_ERROR( "CellBindingPropertyHandler::setPropertyValue: cannot handle this!" ); + OSL_FAIL( "CellBindingPropertyHandler::setPropertyValue: cannot handle this!" ); break; } @@ -401,7 +401,7 @@ namespace pcr break; default: - DBG_ERROR( "CellBindingPropertyHandler::convertToPropertyValue: cannot handle this!" ); + OSL_FAIL( "CellBindingPropertyHandler::convertToPropertyValue: cannot handle this!" ); break; } @@ -456,7 +456,7 @@ namespace pcr break; default: - DBG_ERROR( "CellBindingPropertyHandler::convertToControlValue: cannot handle this!" ); + OSL_FAIL( "CellBindingPropertyHandler::convertToControlValue: cannot handle this!" ); break; } diff --git a/extensions/source/propctrlr/editpropertyhandler.cxx b/extensions/source/propctrlr/editpropertyhandler.cxx index 9dd3911cd7bd..cb5aac0137b6 100644 --- a/extensions/source/propctrlr/editpropertyhandler.cxx +++ b/extensions/source/propctrlr/editpropertyhandler.cxx @@ -134,7 +134,7 @@ namespace pcr default: - DBG_ERROR( "EditPropertyHandler::getPropertyValue: cannot handle this property!" ); + OSL_FAIL( "EditPropertyHandler::getPropertyValue: cannot handle this property!" ); break; } } diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx index 68bd6ae46311..338eccc3262d 100644 --- a/extensions/source/propctrlr/eformspropertyhandler.cxx +++ b/extensions/source/propctrlr/eformspropertyhandler.cxx @@ -153,7 +153,7 @@ namespace pcr break; default: - DBG_ERROR( "EFormsPropertyHandler::getPropertyValue: cannot handle this property!" ); + OSL_FAIL( "EFormsPropertyHandler::getPropertyValue: cannot handle this property!" ); break; } } @@ -269,7 +269,7 @@ namespace pcr break; default: - DBG_ERROR( "EFormsPropertyHandler::setPropertyValue: cannot handle this property!" ); + OSL_FAIL( "EFormsPropertyHandler::setPropertyValue: cannot handle this property!" ); break; } @@ -463,7 +463,7 @@ namespace pcr case PROPERTY_ID_XSD_CALCULATION: aDescriptor.PrimaryButtonId = UID_PROP_DLG_XSD_CALCULATION; break; default: - DBG_ERROR( "EFormsPropertyHandler::describePropertyLine: cannot handle this property!" ); + OSL_FAIL( "EFormsPropertyHandler::describePropertyLine: cannot handle this property!" ); break; } @@ -606,7 +606,7 @@ namespace pcr break; default: - DBG_ERROR( "EFormsPropertyHandler::actuatingPropertyChanged: cannot handle this property!" ); + OSL_FAIL( "EFormsPropertyHandler::actuatingPropertyChanged: cannot handle this property!" ); break; } } diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx index 65271cdd6561..e4716eda777e 100644 --- a/extensions/source/propctrlr/eventhandler.cxx +++ b/extensions/source/propctrlr/eventhandler.cxx @@ -266,7 +266,7 @@ namespace pcr || ( pAssignedEvent->ScriptType.getLength() == 0 ) ) { - DBG_ERROR( "lcl_getAssignedScriptEvent: me thinks this should not happen!" ); + OSL_FAIL( "lcl_getAssignedScriptEvent: me thinks this should not happen!" ); continue; } @@ -305,7 +305,7 @@ namespace pcr EventDescription aKnownEvent; if ( lcl_getEventDescriptionForMethod( _rFormComponentEventDescriptor.EventMethod, aKnownEvent ) ) return aKnownEvent.sListenerClassName; - DBG_ERROR( "lcl_getQualifiedKnownListenerName: unknown method name!" ); + OSL_FAIL( "lcl_getQualifiedKnownListenerName: unknown method name!" ); // somebody assigned an script to a form component event which we don't know // Speaking strictly, this is not really an error - it is possible to do // this programmatically -, but it should rarely happen, since it's not possible @@ -972,7 +972,7 @@ namespace pcr //-------------------------------------------------------------------- void SAL_CALL EventHandler::actuatingPropertyChanged( const ::rtl::OUString& /*_rActuatingPropertyName*/, const Any& /*_rNewValue*/, const Any& /*_rOldValue*/, const Reference< XObjectInspectorUI >& /*_rxInspectorUI*/, sal_Bool /*_bFirstTimeInit*/ ) throw (NullPointerException, RuntimeException) { - DBG_ERROR( "EventHandler::actuatingPropertyChanged: no actuating properties -> no callback (well, this is how it *should* be!)" ); + OSL_FAIL( "EventHandler::actuatingPropertyChanged: no actuating properties -> no callback (well, this is how it *should* be!)" ); } //-------------------------------------------------------------------- diff --git a/extensions/source/propctrlr/fontdialog.cxx b/extensions/source/propctrlr/fontdialog.cxx index 1c06d9310974..0b2548a76bfe 100644 --- a/extensions/source/propctrlr/fontdialog.cxx +++ b/extensions/source/propctrlr/fontdialog.cxx @@ -281,7 +281,7 @@ namespace pcr } catch (Exception&) { - DBG_ERROR("ControlCharacterDialog::translatePropertiesToItems: caught an exception!"); + OSL_FAIL("ControlCharacterDialog::translatePropertiesToItems: caught an exception!"); } _pSet->DisableItem(SID_ATTR_CHAR_CJK_FONT); diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 61a0edaa10c7..3344a8a62c8b 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -1000,7 +1000,7 @@ namespace pcr String sDisplayName = m_pInfoService->getPropertyTranslation( nPropId ); if ( !sDisplayName.Len() ) { - DBG_ERROR( "FormComponentPropertyHandler::describePropertyLine: did getSupportedProperties not work properly?" ); + OSL_FAIL( "FormComponentPropertyHandler::describePropertyLine: did getSupportedProperties not work properly?" ); throw UnknownPropertyException(); } @@ -1513,7 +1513,7 @@ namespace pcr eResult = InteractiveSelectionResult_Pending; break; default: - DBG_ERROR( "FormComponentPropertyHandler::onInteractivePropertySelection: request for a property which does not have dedicated UI!" ); + OSL_FAIL( "FormComponentPropertyHandler::onInteractivePropertySelection: request for a property which does not have dedicated UI!" ); break; } return eResult; @@ -1801,7 +1801,7 @@ namespace pcr break; default: - DBG_ERROR( "FormComponentPropertyHandler::actuatingPropertyChanged: did not register for this property!" ); + OSL_FAIL( "FormComponentPropertyHandler::actuatingPropertyChanged: did not register for this property!" ); break; } // switch ( nActuatingPropId ) @@ -2389,7 +2389,7 @@ namespace pcr } catch (Exception&) { - DBG_ERROR( "FormComponentPropertyHandler::impl_initFieldList_nothrow: caught an exception!" ); + OSL_FAIL( "FormComponentPropertyHandler::impl_initFieldList_nothrow: caught an exception!" ); } } @@ -2443,7 +2443,7 @@ namespace pcr } catch( const Exception& ) { - DBG_ERROR( "FormComponentPropertyHandler::impl_ensureRowsetConnection_nothrow: caught an exception during error handling!" ); + OSL_FAIL( "FormComponentPropertyHandler::impl_ensureRowsetConnection_nothrow: caught an exception during error handling!" ); } // additional info about what happended String sInfo( PcrRes( RID_STR_UNABLETOCONNECT ) ); @@ -2503,7 +2503,7 @@ namespace pcr } catch (Exception&) { - DBG_ERROR("FormComponentPropertyHandler::impl_describeCursorSource_nothrow: caught an exception !"); + OSL_FAIL("FormComponentPropertyHandler::impl_describeCursorSource_nothrow: caught an exception !"); } } diff --git a/extensions/source/propctrlr/formmetadata.cxx b/extensions/source/propctrlr/formmetadata.cxx index 0155062b9dbb..05791a48cc38 100644 --- a/extensions/source/propctrlr/formmetadata.cxx +++ b/extensions/source/propctrlr/formmetadata.cxx @@ -651,7 +651,7 @@ namespace pcr } else { - DBG_ERROR( "DefaultEnumRepresentation::getValueFromDescription: could not translate the enum string!" ); + OSL_FAIL( "DefaultEnumRepresentation::getValueFromDescription: could not translate the enum string!" ); _out_rValue.clear(); } } @@ -675,7 +675,7 @@ namespace pcr } else { - DBG_ERROR( "DefaultEnumRepresentation::getDescriptionForValue: could not translate an enum value" ); + OSL_FAIL( "DefaultEnumRepresentation::getDescriptionForValue: could not translate an enum value" ); } return sReturn; } diff --git a/extensions/source/propctrlr/genericpropertyhandler.cxx b/extensions/source/propctrlr/genericpropertyhandler.cxx index 740bf2eb0c94..f273f948e0e4 100644 --- a/extensions/source/propctrlr/genericpropertyhandler.cxx +++ b/extensions/source/propctrlr/genericpropertyhandler.cxx @@ -172,7 +172,7 @@ namespace pcr _out_rValue = ::cppu::int2enum( aValues[ index ], m_aEnumType ); else { - DBG_ERROR( "EnumRepresentation::getValueFromDescription: cannot convert!" ); + OSL_FAIL( "EnumRepresentation::getValueFromDescription: cannot convert!" ); _out_rValue.clear(); } } @@ -196,7 +196,7 @@ namespace pcr sDescription = aDescriptions[ index ]; else { - DBG_ERROR( "EnumRepresentation::getDescriptionForValue: cannot convert!" ); + OSL_FAIL( "EnumRepresentation::getDescriptionForValue: cannot convert!" ); } return sDescription; } @@ -695,14 +695,14 @@ namespace pcr //-------------------------------------------------------------------- InteractiveSelectionResult SAL_CALL GenericPropertyHandler::onInteractivePropertySelection( const ::rtl::OUString& /*_rPropertyName*/, sal_Bool /*_bPrimary*/, Any& /*_rData*/, const Reference< XObjectInspectorUI >& /*_rxInspectorUI*/ ) throw (UnknownPropertyException, NullPointerException, RuntimeException) { - DBG_ERROR( "GenericPropertyHandler::onInteractivePropertySelection: I'm too dumb to know anything about property browse buttons!" ); + OSL_FAIL( "GenericPropertyHandler::onInteractivePropertySelection: I'm too dumb to know anything about property browse buttons!" ); return InteractiveSelectionResult_Cancelled; } //-------------------------------------------------------------------- void SAL_CALL GenericPropertyHandler::actuatingPropertyChanged( const ::rtl::OUString& /*_rActuatingPropertyName*/, const Any& /*_rNewValue*/, const Any& /*_rOldValue*/, const Reference< XObjectInspectorUI >& /*_rxInspectorUI*/, sal_Bool /*_bFirstTimeInit*/ ) throw (NullPointerException, RuntimeException) { - DBG_ERROR( "GenericPropertyHandler::actuatingPropertyChanged: no no no, I did not register for any actuating properties!" ); + OSL_FAIL( "GenericPropertyHandler::actuatingPropertyChanged: no no no, I did not register for any actuating properties!" ); } //-------------------------------------------------------------------- diff --git a/extensions/source/propctrlr/handlerhelper.cxx b/extensions/source/propctrlr/handlerhelper.cxx index fbdf4b18206e..65e5507deb34 100644 --- a/extensions/source/propctrlr/handlerhelper.cxx +++ b/extensions/source/propctrlr/handlerhelper.cxx @@ -113,7 +113,7 @@ namespace pcr break; default: - DBG_ERROR( "PropertyHandlerHelper::describePropertyLine: don't know how to represent this at the UI!" ); + OSL_FAIL( "PropertyHandlerHelper::describePropertyLine: don't know how to represent this at the UI!" ); // NO break! case TypeClass_STRING: diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx index efd52a54ccdb..2499e9aaa360 100644 --- a/extensions/source/propctrlr/propcontroller.cxx +++ b/extensions/source/propctrlr/propcontroller.cxx @@ -990,7 +990,7 @@ namespace pcr catch(Exception&) { - DBG_ERROR("OPropertyBrowserController::impl_rebindToInspectee_nothrow: caught an exception !"); + OSL_FAIL("OPropertyBrowserController::impl_rebindToInspectee_nothrow: caught an exception !"); } } @@ -1121,7 +1121,7 @@ namespace pcr } catch(Exception&) { - DBG_ERROR("OPropertyBrowserController::doInspection : caught an exception !"); + OSL_FAIL("OPropertyBrowserController::doInspection : caught an exception !"); } } @@ -1441,7 +1441,7 @@ namespace pcr } catch(Exception&) { - DBG_ERROR("OPropertyBrowserController::Commit : caught an exception !"); + OSL_FAIL("OPropertyBrowserController::Commit : caught an exception !"); } m_sCommittingProperty = ::rtl::OUString(); diff --git a/extensions/source/propctrlr/propertyhandler.cxx b/extensions/source/propctrlr/propertyhandler.cxx index ee5e4dd67cc4..c3fe86810dba 100644 --- a/extensions/source/propctrlr/propertyhandler.cxx +++ b/extensions/source/propctrlr/propertyhandler.cxx @@ -248,14 +248,14 @@ namespace pcr //-------------------------------------------------------------------- InteractiveSelectionResult SAL_CALL PropertyHandler::onInteractivePropertySelection( const ::rtl::OUString& /*_rPropertyName*/, sal_Bool /*_bPrimary*/, Any& /*_rData*/, const Reference< XObjectInspectorUI >& /*_rxInspectorUI*/ ) throw (UnknownPropertyException, NullPointerException, RuntimeException) { - DBG_ERROR( "PropertyHandler::onInteractivePropertySelection: not implemented!" ); + OSL_FAIL( "PropertyHandler::onInteractivePropertySelection: not implemented!" ); return InteractiveSelectionResult_Cancelled; } //-------------------------------------------------------------------- void SAL_CALL PropertyHandler::actuatingPropertyChanged( const ::rtl::OUString& /*_rActuatingPropertyName*/, const Any& /*_rNewValue*/, const Any& /*_rOldValue*/, const Reference< XObjectInspectorUI >& /*_rxInspectorUI*/, sal_Bool /*_bFirstTimeInit*/ ) throw (NullPointerException, RuntimeException) { - DBG_ERROR( "PropertyHandler::actuatingPropertyChanged: not implemented!" ); + OSL_FAIL( "PropertyHandler::actuatingPropertyChanged: not implemented!" ); } //-------------------------------------------------------------------- diff --git a/extensions/source/propctrlr/submissionhandler.cxx b/extensions/source/propctrlr/submissionhandler.cxx index b14153383f6f..3a64005d3541 100644 --- a/extensions/source/propctrlr/submissionhandler.cxx +++ b/extensions/source/propctrlr/submissionhandler.cxx @@ -167,7 +167,7 @@ namespace pcr break; default: - DBG_ERROR( "SubmissionPropertyHandler::getPropertyValue: cannot handle this property!" ); + OSL_FAIL( "SubmissionPropertyHandler::getPropertyValue: cannot handle this property!" ); break; } } diff --git a/extensions/source/propctrlr/taborder.cxx b/extensions/source/propctrlr/taborder.cxx index 61dc96f287d7..c403f2d709e7 100644 --- a/extensions/source/propctrlr/taborder.cxx +++ b/extensions/source/propctrlr/taborder.cxx @@ -171,7 +171,7 @@ namespace pcr case FormComponentType::SPINBUTTON: nImageId = RID_SVXIMG_SPINBUTTON; break; case FormComponentType::NAVIGATIONBAR: nImageId = RID_SVXIMG_NAVIGATIONBAR; break; default: - DBG_ERROR( "TabOrderDialog::GetImage: unknown control type" ); + OSL_FAIL( "TabOrderDialog::GetImage: unknown control type" ); } } @@ -215,7 +215,7 @@ namespace pcr else { // no property set -> no tab order - DBG_ERROR( "TabOrderDialog::FillList: invalid control encountered!" ); + OSL_FAIL( "TabOrderDialog::FillList: invalid control encountered!" ); aLB_Controls.Clear(); break; } @@ -223,7 +223,7 @@ namespace pcr } catch( const Exception& ) { - DBG_ERROR( "TabOrderDialog::FillList: caught an exception!" ); + OSL_FAIL( "TabOrderDialog::FillList: caught an exception!" ); } // select first entry diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx index c254800af14c..ac69955ac444 100644 --- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx +++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx @@ -163,7 +163,7 @@ namespace pcr ::rtl::Reference< XSDDataType > pType = m_pHelper->getValidatingDataType(); if ( !pType.is() ) { - DBG_ERROR( "XSDValidationPropertyHandler::setPropertyValue: you're trying to set a type facet, without a current type!" ); + OSL_FAIL( "XSDValidationPropertyHandler::setPropertyValue: you're trying to set a type facet, without a current type!" ); return; } @@ -415,7 +415,7 @@ namespace pcr break; default: - DBG_ERROR( "XSDValidationPropertyHandler::describePropertyLine: cannot handle this property!" ); + OSL_FAIL( "XSDValidationPropertyHandler::describePropertyLine: cannot handle this property!" ); break; } @@ -471,7 +471,7 @@ namespace pcr break; default: - DBG_ERROR( "XSDValidationPropertyHandler::onInteractivePropertySelection: unexpected property to build a dedicated UI!" ); + OSL_FAIL( "XSDValidationPropertyHandler::onInteractivePropertySelection: unexpected property to build a dedicated UI!" ); break; } return InteractiveSelectionResult_Cancelled; @@ -503,7 +503,7 @@ namespace pcr ::rtl::Reference< XSDDataType > pType = m_pHelper->getValidatingDataType(); if ( !pType.is() ) { - DBG_ERROR( "XSDValidationPropertyHandler::implPrepareCloneDataCurrentType: invalid current data type!" ); + OSL_FAIL( "XSDValidationPropertyHandler::implPrepareCloneDataCurrentType: invalid current data type!" ); return false; } @@ -542,7 +542,7 @@ namespace pcr ::rtl::Reference< XSDDataType > pType = m_pHelper->getValidatingDataType(); if ( !pType.is() ) { - DBG_ERROR( "XSDValidationPropertyHandler::implPrepareRemoveCurrentDataType: invalid current data type!" ); + OSL_FAIL( "XSDValidationPropertyHandler::implPrepareRemoveCurrentDataType: invalid current data type!" ); return false; } @@ -656,7 +656,7 @@ namespace pcr break; default: - DBG_ERROR( "XSDValidationPropertyHandler::actuatingPropertyChanged: cannot handle this property!" ); + OSL_FAIL( "XSDValidationPropertyHandler::actuatingPropertyChanged: cannot handle this property!" ); return; } diff --git a/extensions/source/scanner/scanwin.cxx b/extensions/source/scanner/scanwin.cxx index f1fd8b69c8af..b292833cf375 100644 --- a/extensions/source/scanner/scanwin.cxx +++ b/extensions/source/scanner/scanwin.cxx @@ -598,7 +598,7 @@ uno::Reference< frame::XFrame > ImpTwain::ImplGetActiveFrame() catch( const beans::UnknownPropertyException& ) { // property unknown. - DBG_ERROR("ImpTwain::ImplGetActiveFrame: ActiveFrame property unknown, cannot determine active frame!"); + OSL_FAIL("ImpTwain::ImplGetActiveFrame: ActiveFrame property unknown, cannot determine active frame!"); return uno::Reference< frame::XFrame >(); } @@ -617,7 +617,7 @@ uno::Reference< frame::XFrame > ImpTwain::ImplGetActiveFrame() { } - DBG_ERROR("ImpTwain::ImplGetActiveFrame: Could not determine active frame!"); + OSL_FAIL("ImpTwain::ImplGetActiveFrame: Could not determine active frame!"); return uno::Reference< frame::XFrame >(); } @@ -633,7 +633,7 @@ uno::Reference< util::XCloseBroadcaster > ImpTwain::ImplGetActiveFrameCloseBroad { } - DBG_ERROR("ImpTwain::ImplGetActiveFrameCloseBroadcaster: Could determine close broadcaster on active frame!"); + OSL_FAIL("ImpTwain::ImplGetActiveFrameCloseBroadcaster: Could determine close broadcaster on active frame!"); return uno::Reference< util::XCloseBroadcaster >(); } @@ -653,7 +653,7 @@ void ImpTwain::ImplRegisterCloseListener() else { // interface unknown. don't register, then - DBG_ERROR("ImpTwain::ImplRegisterCloseListener: XFrame has no XCloseBroadcaster!"); + OSL_FAIL("ImpTwain::ImplRegisterCloseListener: XFrame has no XCloseBroadcaster!"); return; } } @@ -661,7 +661,7 @@ void ImpTwain::ImplRegisterCloseListener() { } - DBG_ERROR("ImpTwain::ImplRegisterCloseListener: Could not register as close listener!"); + OSL_FAIL("ImpTwain::ImplRegisterCloseListener: Could not register as close listener!"); } // ----------------------------------------------------------------------------- @@ -681,7 +681,7 @@ void ImpTwain::ImplDeregisterCloseListener() else { // interface unknown. don't deregister, then - DBG_ERROR("ImpTwain::ImplDeregisterCloseListener: XFrame has no XCloseBroadcaster!"); + OSL_FAIL("ImpTwain::ImplDeregisterCloseListener: XFrame has no XCloseBroadcaster!"); return; } } @@ -689,7 +689,7 @@ void ImpTwain::ImplDeregisterCloseListener() { } - DBG_ERROR("ImpTwain::ImplDeregisterCloseListener: Could not deregister as close listener!"); + OSL_FAIL("ImpTwain::ImplDeregisterCloseListener: Could not deregister as close listener!"); } // ----------------------------------------------------------------------------- @@ -708,7 +708,7 @@ void SAL_CALL ImpTwain::queryClosing( const lang::EventObject& /*Source*/, sal_B void SAL_CALL ImpTwain::notifyClosing( const lang::EventObject& /*Source*/ ) throw (uno::RuntimeException) { // should not happen - DBG_ERROR("ImpTwain::notifyClosing called, but we vetoed the closing before!"); + OSL_FAIL("ImpTwain::notifyClosing called, but we vetoed the closing before!"); } // ----------------------------------------------------------------------------- @@ -733,7 +733,7 @@ void ImpTwain::ImplSendCloseEvent() { } - DBG_ERROR("ImpTwain::ImplSendCloseEvent: Could not send required close broadcast!"); + OSL_FAIL("ImpTwain::ImplSendCloseEvent: Could not send required close broadcast!"); } diff --git a/extensions/source/svg/svgaction.cxx b/extensions/source/svg/svgaction.cxx index 97e1921542c2..e3881c5f5b88 100644 --- a/extensions/source/svg/svgaction.cxx +++ b/extensions/source/svg/svgaction.cxx @@ -519,7 +519,7 @@ void SVGActionWriter::ImplWriteLine( const Point& rPt1, const Point& rPt2, const if( pLineColor ) { // !!! mrExport.AddAttribute( XML_NAMESPACE_NONE, ... ) - DBG_ERROR( "SVGActionWriter::ImplWriteLine: Line color not implemented" ); + OSL_FAIL( "SVGActionWriter::ImplWriteLine: Line color not implemented" ); } { diff --git a/forms/source/component/Button.cxx b/forms/source/component/Button.cxx index 9b0c44de98b6..65838c5d9a3b 100644 --- a/forms/source/component/Button.cxx +++ b/forms/source/component/Button.cxx @@ -224,7 +224,7 @@ void OButtonModel::read(const Reference<XObjectInputStream>& _rxInStream) throw break; default: - DBG_ERROR("OButtonModel::read : unknown version !"); + OSL_FAIL("OButtonModel::read : unknown version !"); m_eButtonType = FormButtonType_PUSH; m_sTargetURL = ::rtl::OUString(); m_sTargetFrame = ::rtl::OUString(); @@ -492,7 +492,7 @@ IMPL_LINK( OButtonControl, OnClick, void*, EMPTYARG ) #endif catch( const Exception& ) { - DBG_ERROR( "OButtonControl::OnClick: caught a exception other than RuntimeException!" ); + OSL_FAIL( "OButtonControl::OnClick: caught a exception other than RuntimeException!" ); } } } diff --git a/forms/source/component/CheckBox.cxx b/forms/source/component/CheckBox.cxx index 11ccbe16690a..5fbf0a8d1086 100644 --- a/forms/source/component/CheckBox.cxx +++ b/forms/source/component/CheckBox.cxx @@ -200,7 +200,7 @@ void SAL_CALL OCheckBoxModel::read(const Reference<stario::XObjectInputStream>& readCommonProperties(_rxInStream); break; default: - DBG_ERROR("OCheckBoxModel::read : unknown version !"); + OSL_FAIL("OCheckBoxModel::read : unknown version !"); defaultCommonProperties(); break; } @@ -257,12 +257,12 @@ sal_Bool OCheckBoxModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) m_xColumnUpdate->updateBoolean( sal_False ); break; default: - DBG_ERROR("OCheckBoxModel::commitControlValueToDbColumn: invalid value !"); + OSL_FAIL("OCheckBoxModel::commitControlValueToDbColumn: invalid value !"); } } catch(Exception&) { - DBG_ERROR("OCheckBoxModel::commitControlValueToDbColumn: could not commit !"); + OSL_FAIL("OCheckBoxModel::commitControlValueToDbColumn: could not commit !"); } } return sal_True; diff --git a/forms/source/component/ComboBox.cxx b/forms/source/component/ComboBox.cxx index 899289025e7b..4ddf4532f51b 100644 --- a/forms/source/component/ComboBox.cxx +++ b/forms/source/component/ComboBox.cxx @@ -403,7 +403,7 @@ void SAL_CALL OComboBoxModel::read(const Reference<stario::XObjectInputStream>& if (nVersion > 0x0006) { - DBG_ERROR("OComboBoxModel::read : invalid (means unknown) version !"); + OSL_FAIL("OComboBoxModel::read : invalid (means unknown) version !"); m_aListSource = ::rtl::OUString(); m_aBoundColumn <<= (sal_Int16)0; m_aDefaultText = ::rtl::OUString(); @@ -498,7 +498,7 @@ void OComboBoxModel::loadData( bool _bForce ) Reference<XServiceInfo> xServiceInfo(xConnection, UNO_QUERY); if (!xServiceInfo.is() || !xServiceInfo->supportsService(SRV_SDB_CONNECTION)) { - DBG_ERROR("OComboBoxModel::loadData : invalid connection !"); + OSL_FAIL("OComboBoxModel::loadData : invalid connection !"); return; } diff --git a/forms/source/component/Currency.cxx b/forms/source/component/Currency.cxx index ed919f60b0d6..9ae25ed9b4b8 100644 --- a/forms/source/component/Currency.cxx +++ b/forms/source/component/Currency.cxx @@ -137,7 +137,7 @@ void OCurrencyModel::implConstruct() } catch(Exception&) { - DBG_ERROR( "OCurrencyModel::implConstruct: caught an exception while initializing the aggregate!" ); + OSL_FAIL( "OCurrencyModel::implConstruct: caught an exception while initializing the aggregate!" ); } } } diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 79205f7859f1..e29a2ad14210 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -1157,7 +1157,7 @@ bool ODatabaseForm::hasValidParent() const Reference<XResultSet> xResultSet(m_xParent, UNO_QUERY); if (!xResultSet.is()) { - DBG_ERROR("ODatabaseForm::hasValidParent() : no parent resultset !"); + OSL_FAIL("ODatabaseForm::hasValidParent() : no parent resultset !"); return false; } try @@ -2339,7 +2339,7 @@ void ODatabaseForm::submit_impl(const Reference<XControl>& Control, const ::com: lcl_dispatch(xFrame,xTransformer,aURLStr,aReferer,aTargetName,aData,osl_getThreadTextEncoding()); } else { - DBG_ERROR("ODatabaseForm::submit_Impl : wrong encoding !"); + OSL_FAIL("ODatabaseForm::submit_Impl : wrong encoding !"); } } @@ -3022,7 +3022,7 @@ void ODatabaseForm::reload_impl(sal_Bool bMoveToFirst, const Reference< XInterac } catch( const SQLException& e ) { - DBG_ERROR("ODatabaseForm::reload_impl : shouldn't executeRowSet catch this exception?"); + OSL_FAIL("ODatabaseForm::reload_impl : shouldn't executeRowSet catch this exception?"); (void)e; } @@ -3935,7 +3935,7 @@ void SAL_CALL ODatabaseForm::write(const Reference<XObjectOutputStream>& _rxOutS eTranslated = bEscapeProcessing ? DataSelectionType_SQL : DataSelectionType_SQLPASSTHROUGH; } break; - default : DBG_ERROR("ODatabaseForm::write : wrong CommandType !"); + default : OSL_FAIL("ODatabaseForm::write : wrong CommandType !"); } } _rxOutStream->writeShort((sal_Int16)eTranslated); // former DataSelectionType @@ -4041,7 +4041,7 @@ void SAL_CALL ODatabaseForm::read(const Reference<XObjectInputStream>& _rxInStre m_xAggregateSet->setPropertyValue(PROPERTY_ESCAPE_PROCESSING, makeAny((sal_Bool)bEscapeProcessing)); } break; - default : DBG_ERROR("ODatabaseForm::read : wrong CommandType !"); + default : OSL_FAIL("ODatabaseForm::read : wrong CommandType !"); } if (m_xAggregateSet.is()) m_xAggregateSet->setPropertyValue(PROPERTY_COMMANDTYPE, makeAny(nCommandType)); diff --git a/forms/source/component/File.cxx b/forms/source/component/File.cxx index a780574c97bd..170241c6eba2 100644 --- a/forms/source/component/File.cxx +++ b/forms/source/component/File.cxx @@ -248,7 +248,7 @@ void OFileControlModel::read(const Reference<stario::XObjectInputStream>& _rxInS readHelpTextCompatibly(_rxInStream); break; default: - DBG_ERROR("OFileControlModel::read : unknown version !"); + OSL_FAIL("OFileControlModel::read : unknown version !"); m_sDefaultValue = ::rtl::OUString(); } diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx index cfc0ec5e6e09..6aff61483a6d 100644 --- a/forms/source/component/Filter.cxx +++ b/forms/source/component/Filter.cxx @@ -756,7 +756,7 @@ namespace frm } else { - DBG_ERROR( "OFilterControl::initialize: unrecognized argument!" ); + OSL_FAIL( "OFilterControl::initialize: unrecognized argument!" ); continue; } diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index 55572a73afe8..53881a3e2ac2 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -1804,7 +1804,7 @@ sal_Bool OBoundControlModel::convertFastPropertyValue( bModified = tryPropertyValue(_rConvertedValue, _rOldValue, _rValue, m_aControlSource); break; case PROPERTY_ID_BOUNDFIELD: - DBG_ERROR( "OBoundControlModel::convertFastPropertyValue: BoundField should be a read-only property !" ); + OSL_FAIL( "OBoundControlModel::convertFastPropertyValue: BoundField should be a read-only property !" ); throw com::sun::star::lang::IllegalArgumentException(); case PROPERTY_ID_CONTROLLABEL: if (!_rValue.hasValue()) @@ -1860,7 +1860,7 @@ void OBoundControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, co OSL_VERIFY( rValue >>= m_aControlSource ); break; case PROPERTY_ID_BOUNDFIELD: - DBG_ERROR("OBoundControlModel::setFastPropertyValue_NoBroadcast : BoundField should be a read-only property !"); + OSL_FAIL("OBoundControlModel::setFastPropertyValue_NoBroadcast : BoundField should be a read-only property !"); throw com::sun::star::lang::IllegalArgumentException(); case PROPERTY_ID_CONTROLLABEL: { @@ -2519,7 +2519,7 @@ void OBoundControlModel::reset() throw (RuntimeException) } catch(Exception&) { - DBG_ERROR("OBoundControlModel::reset: this should have succeeded in all cases!"); + OSL_FAIL("OBoundControlModel::reset: this should have succeeded in all cases!"); } sal_Bool bNeedValueTransfer = sal_True; diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx index 961c0d7e9207..000f3ea3f770 100644 --- a/forms/source/component/FormattedField.cxx +++ b/forms/source/component/FormattedField.cxx @@ -659,7 +659,7 @@ Reference<XNumberFormatsSupplier> OFormattedModel::calcFormFormatsSupplier() co if (!xNextParentForm.is()) { - DBG_ERROR("OFormattedModel::calcFormFormatsSupplier : have no ancestor which is a form !"); + OSL_FAIL("OFormattedModel::calcFormFormatsSupplier : have no ancestor which is a form !"); return NULL; } @@ -977,7 +977,7 @@ void OFormattedModel::read(const Reference<XObjectInputStream>& _rxInStream) thr case 2: break; case 3: - DBG_ERROR("FmXFormattedModel::read : unknown effective value type !"); + OSL_FAIL("FmXFormattedModel::read : unknown effective value type !"); } } @@ -997,7 +997,7 @@ void OFormattedModel::read(const Reference<XObjectInputStream>& _rxInStream) thr } break; default : - DBG_ERROR("OFormattedModel::read : unknown version !"); + OSL_FAIL("OFormattedModel::read : unknown version !"); // dann bleibt das Format des aggregierten Sets, wie es bei der Erzeugung ist : void defaultCommonEditProperties(); break; diff --git a/forms/source/component/FormattedFieldWrapper.cxx b/forms/source/component/FormattedFieldWrapper.cxx index 6ac7740f78b0..118c06921ce1 100644 --- a/forms/source/component/FormattedFieldWrapper.cxx +++ b/forms/source/component/FormattedFieldWrapper.cxx @@ -380,7 +380,7 @@ void OFormattedFieldWrapper::ensureAggregate() Reference< XServiceInfo > xSI(m_xAggregate, UNO_QUERY); if (!xSI.is()) { - DBG_ERROR("OFormattedFieldWrapper::ensureAggregate: the aggregate has no XServiceInfo!"); + OSL_FAIL("OFormattedFieldWrapper::ensureAggregate: the aggregate has no XServiceInfo!"); m_xAggregate.clear(); } } diff --git a/forms/source/component/Grid.cxx b/forms/source/component/Grid.cxx index 701f143c1c0a..7fdb83591834 100644 --- a/forms/source/component/Grid.cxx +++ b/forms/source/component/Grid.cxx @@ -203,7 +203,7 @@ void OGridControlModel::cloneColumns( const OGridControlModel* _pOriginalContain } catch( const Exception& ) { - DBG_ERROR( "OGridControlModel::cloneColumns: caught an exception while cloning the columns!" ); + OSL_FAIL( "OGridControlModel::cloneColumns: caught an exception while cloning the columns!" ); } } @@ -399,7 +399,7 @@ Reference<XPropertySet> OGridControlModel::createColumn(sal_Int32 nTypeId) cons case TYPE_TIMEFIELD: xReturn = new TimeFieldColumn( getContext() ); break; case TYPE_FORMATTEDFIELD: xReturn = new FormattedFieldColumn( getContext() ); break; default: - DBG_ERROR("OGridControlModel::createColumn: Unknown Column"); + OSL_FAIL("OGridControlModel::createColumn: Unknown Column"); break; } return xReturn; diff --git a/forms/source/component/GroupBox.cxx b/forms/source/component/GroupBox.cxx index 702a3aba1905..ccb45d2f8a48 100644 --- a/forms/source/component/GroupBox.cxx +++ b/forms/source/component/GroupBox.cxx @@ -137,7 +137,7 @@ void SAL_CALL OGroupBoxModel::read(const Reference< XObjectInputStream>& _rxInSt if (nVersion > 0x0002) { - DBG_ERROR("OGroupBoxModel::read : unknown version !"); + OSL_FAIL("OGroupBoxModel::read : unknown version !"); } }; diff --git a/forms/source/component/GroupManager.cxx b/forms/source/component/GroupManager.cxx index 7704af43018e..1268bcb5828b 100644 --- a/forms/source/component/GroupManager.cxx +++ b/forms/source/component/GroupManager.cxx @@ -226,12 +226,12 @@ void OGroup::RemoveComponent( const Reference<XPropertySet>& rxElement ) } else { - DBG_ERROR( "OGroup::RemoveComponent: Component nicht in Gruppe" ); + OSL_FAIL( "OGroup::RemoveComponent: Component nicht in Gruppe" ); } } else { - DBG_ERROR( "OGroup::RemoveComponent: Component nicht in Gruppe" ); + OSL_FAIL( "OGroup::RemoveComponent: Component nicht in Gruppe" ); } } diff --git a/forms/source/component/Hidden.cxx b/forms/source/component/Hidden.cxx index 6f1e595d7e79..e71396ec2a39 100644 --- a/forms/source/component/Hidden.cxx +++ b/forms/source/component/Hidden.cxx @@ -178,7 +178,7 @@ void SAL_CALL OHiddenModel::read(const Reference<XObjectInputStream>& _rxInStrea { case 1 : { ::rtl::OUString sDummy; _rxInStream >> sDummy; _rxInStream >> m_sHiddenValue; } break; case 2 : _rxInStream >> m_sHiddenValue; break; - default : DBG_ERROR("OHiddenModel::read : unknown version !"); m_sHiddenValue = ::rtl::OUString(); + default : OSL_FAIL("OHiddenModel::read : unknown version !"); m_sHiddenValue = ::rtl::OUString(); } OControlModel::read(_rxInStream); } diff --git a/forms/source/component/ImageButton.cxx b/forms/source/component/ImageButton.cxx index 926ed5c57e55..c65fea102a12 100644 --- a/forms/source/component/ImageButton.cxx +++ b/forms/source/component/ImageButton.cxx @@ -165,7 +165,7 @@ void OImageButtonModel::read(const Reference<XObjectInputStream>& _rxInStream) t break; default : - DBG_ERROR("OImageButtonModel::read : unknown version !"); + OSL_FAIL("OImageButtonModel::read : unknown version !"); m_eButtonType = FormButtonType_PUSH; m_sTargetURL = ::rtl::OUString(); m_sTargetFrame = ::rtl::OUString(); diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx index 5fd9942b33cb..e11ace8dd091 100644 --- a/forms/source/component/ImageControl.cxx +++ b/forms/source/component/ImageControl.cxx @@ -408,7 +408,7 @@ void OImageControlModel::read(const Reference<XObjectInputStream>& _rxInStream) readCommonProperties(_rxInStream); break; default : - DBG_ERROR("OImageControlModel::read : unknown version !"); + OSL_FAIL("OImageControlModel::read : unknown version !"); m_bReadOnly = sal_False; defaultCommonProperties(); break; @@ -875,7 +875,7 @@ bool OImageControlControl::implInsertGraphics() } catch(Exception&) { - DBG_ERROR("OImageControlControl::implInsertGraphics: caught an exception while attempting to execute the FilePicker!"); + OSL_FAIL("OImageControlControl::implInsertGraphics: caught an exception while attempting to execute the FilePicker!"); } return false; } diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 575a55d84db6..213f58558a6f 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -553,7 +553,7 @@ namespace frm if (nVersion > 0x0004) { - DBG_ERROR("OListBoxModel::read : invalid (means unknown) version !"); + OSL_FAIL("OListBoxModel::read : invalid (means unknown) version !"); ValueList().swap(m_aListSourceValues); m_aBoundColumn <<= (sal_Int16)0; ValueList().swap(m_aBoundValues); diff --git a/forms/source/component/RadioButton.cxx b/forms/source/component/RadioButton.cxx index 68dbd633c85f..0f04b9dd3313 100644 --- a/forms/source/component/RadioButton.cxx +++ b/forms/source/component/RadioButton.cxx @@ -351,7 +351,7 @@ void SAL_CALL ORadioButtonModel::read(const Reference<XObjectInputStream>& _rxIn readCommonProperties(_rxInStream); break; default : - DBG_ERROR("ORadioButtonModel::read : unknown version !"); + OSL_FAIL("ORadioButtonModel::read : unknown version !"); defaultCommonProperties(); break; } @@ -425,7 +425,7 @@ sal_Bool ORadioButtonModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) } catch(Exception&) { - DBG_ERROR("ORadioButtonModel::commitControlValueToDbColumn: could not commit !"); + OSL_FAIL("ORadioButtonModel::commitControlValueToDbColumn: could not commit !"); } } return sal_True; diff --git a/forms/source/component/formcontrolfont.cxx b/forms/source/component/formcontrolfont.cxx index f1488c85846a..c9837d5ee862 100644 --- a/forms/source/component/formcontrolfont.cxx +++ b/forms/source/component/formcontrolfont.cxx @@ -357,7 +357,7 @@ namespace frm break; default: - DBG_ERROR( "FontControlModel::convertFastPropertyValue: no font aggregate!" ); + OSL_FAIL( "FontControlModel::convertFastPropertyValue: no font aggregate!" ); } return bModified; } @@ -460,7 +460,7 @@ namespace frm break; default: - DBG_ERROR( "FontControlModel::setFastPropertyValue_NoBroadcast: invalid property!" ); + OSL_FAIL( "FontControlModel::setFastPropertyValue_NoBroadcast: invalid property!" ); } } @@ -539,7 +539,7 @@ namespace frm break; default: - DBG_ERROR( "FontControlModel::getPropertyDefaultByHandle: invalid property!" ); + OSL_FAIL( "FontControlModel::getPropertyDefaultByHandle: invalid property!" ); } return aReturn; diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx index ceeeccaffa79..39d025719297 100644 --- a/forms/source/component/imgprod.cxx +++ b/forms/source/component/imgprod.cxx @@ -164,7 +164,7 @@ ErrCode ImgProdLockBytes::SetSize( sal_Size nSize ) return SvLockBytes::SetSize( nSize ); else { - DBG_ERROR( "ImgProdLockBytes::SetSize not supported for xInputStream..." ); + OSL_FAIL( "ImgProdLockBytes::SetSize not supported for xInputStream..." ); return ERRCODE_IO_CANTWRITE; } } diff --git a/forms/source/helper/controlfeatureinterception.cxx b/forms/source/helper/controlfeatureinterception.cxx index 78746c7f4918..05bb0347dd72 100644 --- a/forms/source/helper/controlfeatureinterception.cxx +++ b/forms/source/helper/controlfeatureinterception.cxx @@ -59,7 +59,7 @@ namespace frm { if ( !_rxInterceptor.is() ) { - DBG_ERROR( "ControlFeatureInterception::registerDispatchProviderInterceptor: invalid interceptor!" ); + OSL_FAIL( "ControlFeatureInterception::registerDispatchProviderInterceptor: invalid interceptor!" ); return; } @@ -82,7 +82,7 @@ namespace frm { if ( !_rxInterceptor.is() ) { - DBG_ERROR( "ControlFeatureInterception::releaseDispatchProviderInterceptor: invalid interceptor!" ); + OSL_FAIL( "ControlFeatureInterception::releaseDispatchProviderInterceptor: invalid interceptor!" ); return; } diff --git a/forms/source/helper/formnavigation.cxx b/forms/source/helper/formnavigation.cxx index 5ac563e63373..3a14f429445c 100644 --- a/forms/source/helper/formnavigation.cxx +++ b/forms/source/helper/formnavigation.cxx @@ -133,7 +133,7 @@ namespace frm } // unreachable - DBG_ERROR( "OFormNavigationHelper::statusChanged: huh? An invalid/unknown URL?" ); + OSL_FAIL( "OFormNavigationHelper::statusChanged: huh? An invalid/unknown URL?" ); } //------------------------------------------------------------------ diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx index 8fff1f79fa20..9c25049affb8 100644 --- a/forms/source/misc/InterfaceContainer.cxx +++ b/forms/source/misc/InterfaceContainer.cxx @@ -608,7 +608,7 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >& } catch( const Exception& ) { - DBG_ERROR( "OInterfaceContainerHelper::read: reading succeeded, but not inserting!" ); + OSL_FAIL( "OInterfaceContainerHelper::read: reading succeeded, but not inserting!" ); // create a placeholder xElement = xElement.query( lcl_createPlaceHolder( m_xServiceFactory ) ); if ( !xElement.is() ) @@ -1135,7 +1135,7 @@ void SAL_CALL OInterfaceContainer::insertByName(const ::rtl::OUString& _rName, c } catch( const Exception& ) { - DBG_ERROR( "OInterfaceContainer::insertByName: caught an exception!" ); + OSL_FAIL( "OInterfaceContainer::insertByName: caught an exception!" ); } implInsert( m_aItems.size(), xElementProps, sal_True, aElementMetaData.get(), sal_True ); } diff --git a/forms/source/xforms/propertysetbase.cxx b/forms/source/xforms/propertysetbase.cxx index dd2c3f139098..438212d55dbd 100644 --- a/forms/source/xforms/propertysetbase.cxx +++ b/forms/source/xforms/propertysetbase.cxx @@ -125,7 +125,7 @@ void PropertySetBase::notifyAndCachePropertyValue( sal_Int32 nHandle ) } catch( Exception& ) { - DBG_ERROR( "PropertySetBase::notifyAndCachePropertyValue: this is not expected to fail!" ); + OSL_FAIL( "PropertySetBase::notifyAndCachePropertyValue: this is not expected to fail!" ); } } Any aOldValue = aPos->second; diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx index 67233dabe60c..e9325e3ba5bb 100644 --- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx @@ -823,7 +823,7 @@ void SAL_CALL pPropHelper->AddAsPropListener(); //! after a reference is established } else { - DBG_ERROR( "wrong number of arguments in sequence" ); + OSL_FAIL( "wrong number of arguments in sequence" ); } } diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx index 03ae2934b322..dbfca03edc17 100644 --- a/lingucomponent/source/lingutil/lingutil.cxx +++ b/lingucomponent/source/lingutil/lingutil.cxx @@ -99,7 +99,7 @@ rtl::OString Win_GetShortPathName( const rtl::OUString &rLongPathName ) if (nShortLen < nShortBufSize) // conversion successful? aRes = rtl::OString( OU2ENC( rtl::OUString( aShortBuffer, nShortLen ), osl_getThreadTextEncoding()) ); else - DBG_ERROR( "Win_GetShortPathName: buffer to short" ); + OSL_FAIL( "Win_GetShortPathName: buffer to short" ); return aRes; } @@ -248,7 +248,7 @@ void MergeNewStyleDicsAndOldStyleDics( if (nLang == LANGUAGE_DONTKNOW || nLang == LANGUAGE_NONE) { - DBG_ERROR( "old style dictionary with invalid language found!" ); + OSL_FAIL( "old style dictionary with invalid language found!" ); continue; } @@ -258,7 +258,7 @@ void MergeNewStyleDicsAndOldStyleDics( } else { - DBG_ERROR( "old style dictionary with no language found!" ); + OSL_FAIL( "old style dictionary with no language found!" ); } } } diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx index 087a4cd45b23..18232d557250 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx @@ -543,7 +543,7 @@ void SAL_CALL pPropHelper->AddAsPropListener(); //! after a reference is established } else - DBG_ERROR( "wrong number of arguments in sequence" ); + OSL_FAIL( "wrong number of arguments in sequence" ); } } diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 61b903081d8c..34ac76a4447b 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -588,7 +588,7 @@ void SAL_CALL pPropHelper->AddAsPropListener(); //! after a reference is established } else { - DBG_ERROR( "wrong number of arguments in sequence" ); + OSL_FAIL( "wrong number of arguments in sequence" ); } } diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index 85c358128717..5cb4e630c7ec 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -596,7 +596,7 @@ void SAL_CALL pPropHelper->AddAsPropListener(); //! after a reference is established } else - DBG_ERROR( "wrong number of arguments in sequence" ); + OSL_FAIL( "wrong number of arguments in sequence" ); } } diff --git a/xmlsecurity/source/component/registerservices.cxx b/xmlsecurity/source/component/registerservices.cxx index 9dc442ef490a..e95a2111c690 100644 --- a/xmlsecurity/source/component/registerservices.cxx +++ b/xmlsecurity/source/component/registerservices.cxx @@ -83,7 +83,7 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr } catch (registry::InvalidRegistryException &) { - DBG_ERROR( "InvalidRegistryException!" ); + OSL_FAIL( "InvalidRegistryException!" ); } } return sal_False; diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index 9dafad5a9c8b..d4f08d7190de 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -444,7 +444,7 @@ IMPL_LINK( DigitalSignaturesDialog, AddButtonHdl, Button*, EMPTYARG ) rtl::OUString aCertSerial = xSerialNumberAdapter->toString( xCert->getSerialNumber() ); if ( !aCertSerial.getLength() ) { - DBG_ERROR( "Error in Certificate, problem with serial number!" ); + OSL_FAIL( "Error in Certificate, problem with serial number!" ); return -1; } @@ -519,7 +519,7 @@ IMPL_LINK( DigitalSignaturesDialog, AddButtonHdl, Button*, EMPTYARG ) } catch ( uno::Exception& ) { - DBG_ERROR( "Exception while adding a signature!" ); + OSL_FAIL( "Exception while adding a signature!" ); // Don't keep invalid entries... ImplGetSignatureInformations(true); ImplFillSignaturesBox(); @@ -561,7 +561,7 @@ IMPL_LINK( DigitalSignaturesDialog, RemoveButtonHdl, Button*, EMPTYARG ) } catch ( uno::Exception& ) { - DBG_ERROR( "Exception while removing a signature!" ); + OSL_FAIL( "Exception while removing a signature!" ); // Don't keep invalid entries... ImplGetSignatureInformations(true); ImplFillSignaturesBox(); diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx index f1b1728a205b..5454fe8a5bc8 100644 --- a/xmlsecurity/source/dialogs/macrosecurity.cxx +++ b/xmlsecurity/source/dialogs/macrosecurity.cxx @@ -140,7 +140,7 @@ MacroSecurityLevelTP::MacroSecurityLevelTP( Window* _pParent, MacroSecurity* _pD pCheck->Check(); else { - DBG_ERROR("illegal macro security level"); + OSL_FAIL("illegal macro security level"); } maSecReadonlyFI.Show(bReadonly); if(bReadonly) diff --git a/xmlsecurity/workben/signaturetest.cxx b/xmlsecurity/workben/signaturetest.cxx index c0cb2e4d9e1a..71a8e82e34dd 100644 --- a/xmlsecurity/workben/signaturetest.cxx +++ b/xmlsecurity/workben/signaturetest.cxx @@ -93,7 +93,7 @@ void Main(); uno::Reference< uno::XComponentContext > xCtx( cppu::defaultBootstrap_InitialComponentContext() ); if ( !xCtx.is() ) { - DBG_ERROR( "Error creating initial component context!" ); + OSL_FAIL( "Error creating initial component context!" ); return -1; } @@ -101,7 +101,7 @@ void Main(); if ( !xMSF.is() ) { - DBG_ERROR( "No service manager!" ); + OSL_FAIL( "No service manager!" ); return -1; } @@ -112,14 +112,14 @@ void Main(); sal_Bool bSuccess = ::ucb::ContentBroker::initialize( xMSF, aArgs ); if ( !bSuccess ) { - DBG_ERROR( "Error creating UCB!" ); + OSL_FAIL( "Error creating UCB!" ); return -1; } } catch ( uno::Exception const & ) { - DBG_ERROR( "Exception during creation of initial component context!" ); + OSL_FAIL( "Exception during creation of initial component context!" ); return -1; } comphelper::setProcessServiceFactory( xMSF ); |