diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-01 17:55:09 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-02 15:00:30 +0100 |
commit | fdeb50167836803f1a79082ddd25e4ae8ac20611 (patch) | |
tree | 3e9ff2e3cba72052ce97b0b16575791d2cdbdf6f /automation/source/server | |
parent | 096b61aa08ee37c6d6818791a7c5fb94d2f1ef7d (diff) |
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'automation/source/server')
-rw-r--r-- | automation/source/server/XMLParser.cxx | 2 | ||||
-rw-r--r-- | automation/source/server/cmdbasestream.cxx | 8 | ||||
-rw-r--r-- | automation/source/server/recorder.cxx | 6 | ||||
-rw-r--r-- | automation/source/server/server.cxx | 4 | ||||
-rw-r--r-- | automation/source/server/statemnt.cxx | 14 |
5 files changed, 17 insertions, 17 deletions
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" ); |