summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 17:55:09 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-02 15:00:30 +0100
commitfdeb50167836803f1a79082ddd25e4ae8ac20611 (patch)
tree3e9ff2e3cba72052ce97b0b16575791d2cdbdf6f /basctl
parent096b61aa08ee37c6d6818791a7c5fb94d2f1ef7d (diff)
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.cxx2
-rw-r--r--basctl/source/basicide/bastype3.cxx8
-rw-r--r--basctl/source/basicide/localizationmgr.cxx4
-rw-r--r--basctl/source/basicide/moduldl2.cxx2
-rw-r--r--basctl/source/basicide/moduldlg.cxx2
-rw-r--r--basctl/source/dlged/dlged.cxx2
-rw-r--r--basctl/source/dlged/propbrw.cxx4
7 files changed, 12 insertions, 12 deletions
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);