summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-08-24 11:22:56 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-08-24 11:30:17 +0900
commite1a1091d0ae61ba46c6d063a92db0b7d1ce65942 (patch)
tree5cd7f5ba6ad9fc1e859263332b4f96167ac927ce /basctl
parent8dfa38c418125ad880e9d4b2a968f0f1778d6de4 (diff)
catch ignored exceptions by const reference
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside3.cxx14
-rw-r--r--basctl/source/basicide/basides3.cxx2
-rw-r--r--basctl/source/basicide/basidesh.cxx10
-rw-r--r--basctl/source/basicide/bastype2.cxx4
-rw-r--r--basctl/source/basicide/localizationmgr.cxx28
-rw-r--r--basctl/source/basicide/moduldl2.cxx8
-rw-r--r--basctl/source/basicide/moduldlg.cxx8
-rw-r--r--basctl/source/dlged/dlged.cxx8
-rw-r--r--basctl/source/dlged/propbrw.cxx6
9 files changed, 44 insertions, 44 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index 1c3132d76525..833cc158a1fd 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -719,7 +719,7 @@ sal_Bool DialogWindow::SaveDialog()
xSFI->kill( aCurPath );
xOutput = xSFI->openFileWrite( aCurPath );
}
- catch( Exception& )
+ catch(const Exception& )
{}
if( xOutput.is() )
@@ -747,7 +747,7 @@ sal_Bool DialogWindow::SaveDialog()
Any aResourceResolver = xDialogModelPropSet->getPropertyValue( aResourceResolverPropName );
aResourceResolver >>= xStringResourceResolver;
}
- catch( beans::UnknownPropertyException& )
+ catch(const beans::UnknownPropertyException& )
{}
}
@@ -805,7 +805,7 @@ sal_Bool DialogWindow::SaveDialog()
{
xSFI->kill( aCompleteName );
}
- catch( uno::Exception& )
+ catch(const uno::Exception& )
{}
}
}
@@ -999,7 +999,7 @@ sal_Bool implImportDialog( Window* pWin, const String& rCurPath, const ScriptDoc
aXmlDialogNameAny >>= aOUXmlDialogName;
aXmlDlgName = aOUXmlDialogName;
}
- catch( beans::UnknownPropertyException& )
+ catch(const beans::UnknownPropertyException& )
{}
}
bool bValidName = (aXmlDlgName.Len() != 0);
@@ -1196,7 +1196,7 @@ sal_Bool implImportDialog( Window* pWin, const String& rCurPath, const ScriptDoc
xDialogModelPropSet->setPropertyValue( DLGED_PROP_NAME, aXmlDialogNameAny );
bRenamed = true;
}
- catch( beans::UnknownPropertyException& )
+ catch(const beans::UnknownPropertyException& )
{}
}
@@ -1222,7 +1222,7 @@ sal_Bool implImportDialog( Window* pWin, const String& rCurPath, const ScriptDoc
bDone = sal_True;
}
- catch( Exception& )
+ catch(const Exception& )
{}
}
@@ -1327,7 +1327,7 @@ void DialogWindow::StoreData()
}
}
}
- catch ( uno::Exception& )
+ catch (const uno::Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
diff --git a/basctl/source/basicide/basides3.cxx b/basctl/source/basicide/basides3.cxx
index 2c5cecd6ea44..a9a34be4502c 100644
--- a/basctl/source/basicide/basides3.cxx
+++ b/basctl/source/basicide/basides3.cxx
@@ -105,7 +105,7 @@ DialogWindow* BasicIDEShell::CreateDlgWin( const ScriptDocument& rDocument, cons
nKey = InsertWindowInTable( pWin );
}
}
- catch ( uno::Exception& )
+ catch (const uno::Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx
index eb653918801d..c8c21c88c96d 100644
--- a/basctl/source/basicide/basidesh.cxx
+++ b/basctl/source/basicide/basidesh.cxx
@@ -113,7 +113,7 @@ public:
xContainer->addContainerListener( xContainerListener );
}
}
- catch( uno::Exception& ) {}
+ catch(const uno::Exception& ) {}
}
void removeContainerListener( const ScriptDocument& rScriptDocument, const String& aLibName )
{
@@ -126,7 +126,7 @@ public:
xContainer->removeContainerListener( xContainerListener );
}
}
- catch( uno::Exception& ) {}
+ catch(const uno::Exception& ) {}
}
// XEventListener
@@ -818,7 +818,7 @@ void BasicIDEShell::UpdateWindows()
}
}
}
- catch ( container::NoSuchElementException& )
+ catch (const container::NoSuchElementException& )
{
DBG_UNHANDLED_EXCEPTION();
}
@@ -849,7 +849,7 @@ void BasicIDEShell::UpdateWindows()
}
}
}
- catch ( container::NoSuchElementException& )
+ catch (const container::NoSuchElementException& )
{
DBG_UNHANDLED_EXCEPTION();
}
@@ -1033,7 +1033,7 @@ void BasicIDEShell::SetCurLibForLocalization( const ScriptDocument& rDocument, S
xStringResourceManager = LocalizationMgr::getStringResourceFromDialogLibrary( xDialogLib );
}
}
- catch ( container::NoSuchElementException& )
+ catch (const container::NoSuchElementException& )
{}
m_pCurLocalizationMgr = new LocalizationMgr
( this, rDocument, aLibName, xStringResourceManager );
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx
index 5244a9fb88a5..3f8ecf15fef5 100644
--- a/basctl/source/basicide/bastype2.cxx
+++ b/basctl/source/basicide/bastype2.cxx
@@ -79,7 +79,7 @@ void ModuleInfoHelper::getObjectName( const uno::Reference< container::XNameCont
}
}
}
- catch( uno::Exception& )
+ catch(const uno::Exception& )
{
}
}
@@ -396,7 +396,7 @@ void BasicTreeListBox::ImpCreateLibSubEntries( SvLBoxEntry* pLibRootEntry, const
std::auto_ptr< BasicEntry >( new BasicEntry( OBJ_TYPE_DIALOG ) ) );
}
}
- catch ( container::NoSuchElementException& )
+ catch (const container::NoSuchElementException& )
{
DBG_UNHANDLED_EXCEPTION();
}
diff --git a/basctl/source/basicide/localizationmgr.cxx b/basctl/source/basicide/localizationmgr.cxx
index 499de79960d3..b5dcd5b19354 100644
--- a/basctl/source/basicide/localizationmgr.cxx
+++ b/basctl/source/basicide/localizationmgr.cxx
@@ -279,7 +279,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
{
aNewPropStr = xStringResourceManager->resolveString( aPureIdStr );
}
- catch(MissingResourceException&)
+ catch(const MissingResourceException&)
{
}
aPropAny <<= aNewPropStr;
@@ -301,7 +301,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
{
xStringResourceManager->removeIdForLocale( aPureIdStr, rLocale );
}
- catch(MissingResourceException&)
+ catch(const MissingResourceException&)
{
}
}
@@ -329,7 +329,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
xStringResourceManager->removeIdForLocale( aPureSourceIdStr, rLocale );
xStringResourceManager->setStringForLocale( aPureIdStr, aResStr, rLocale );
}
- catch(MissingResourceException&)
+ catch(const MissingResourceException&)
{}
}
@@ -362,7 +362,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
aResStr = xSourceStringResolver->resolveStringForLocale
( aPureSourceIdStr, rLocale );
}
- catch(MissingResourceException&)
+ catch(const MissingResourceException&)
{
aResStr = xSourceStringResolver->resolveStringForLocale
( aPureSourceIdStr, rDefaultLocale );
@@ -396,7 +396,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
aResStr = xSourceStringResolver->resolveStringForLocale
( aPureSourceIdStr, rLocale );
}
- catch(MissingResourceException&)
+ catch(const MissingResourceException&)
{
aResStr = xSourceStringResolver->resolveStringForLocale
( aPureSourceIdStr, rDefaultLocale );
@@ -480,7 +480,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
{
aNewPropStr = xStringResourceManager->resolveString( aPureIdStr );
}
- catch(MissingResourceException&)
+ catch(const MissingResourceException&)
{
}
}
@@ -511,7 +511,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
{
xStringResourceManager->removeIdForLocale( aPureIdStr, rLocale );
}
- catch(MissingResourceException&)
+ catch(const MissingResourceException&)
{
}
}
@@ -554,7 +554,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
xStringResourceManager->removeIdForLocale( aPureSourceIdStr, rLocale );
xStringResourceManager->setStringForLocale( aPureIdStr, aResStr, rLocale );
}
- catch(MissingResourceException&)
+ catch(const MissingResourceException&)
{}
}
@@ -601,7 +601,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
aResStr = xSourceStringResolver->resolveStringForLocale
( aPureSourceIdStr, rLocale );
}
- catch(MissingResourceException&)
+ catch(const MissingResourceException&)
{
aResStr = xSourceStringResolver->resolveStringForLocale
( aPureSourceIdStr, rDefaultLocale );
@@ -639,7 +639,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
aResStr = xSourceStringResolver->resolveStringForLocale
( aPureSourceIdStr, rLocale );
}
- catch(MissingResourceException&)
+ catch(const MissingResourceException&)
{
aResStr = xSourceStringResolver->resolveStringForLocale
( aPureSourceIdStr, rDefaultLocale );
@@ -726,7 +726,7 @@ void LocalizationMgr::handleRemoveLocales( Sequence< Locale > aLocaleSeq )
m_xStringResourceManager->removeLocale( rLocale );
bModified = true;
}
- catch(IllegalArgumentException&)
+ catch(const IllegalArgumentException&)
{
bConsistant = false;
}
@@ -760,7 +760,7 @@ void LocalizationMgr::handleSetDefaultLocale( Locale aLocale )
{
m_xStringResourceManager->setDefaultLocale( aLocale );
}
- catch(IllegalArgumentException&)
+ catch(const IllegalArgumentException&)
{
OSL_FAIL( "LocalizationMgr::handleSetDefaultLocale: Invalid locale" );
}
@@ -780,7 +780,7 @@ void LocalizationMgr::handleSetCurrentLocale( ::com::sun::star::lang::Locale aLo
{
m_xStringResourceManager->setCurrentLocale( aLocale, false );
}
- catch(IllegalArgumentException&)
+ catch(const IllegalArgumentException&)
{
OSL_FAIL( "LocalizationMgr::handleSetCurrentLocale: Invalid locale" );
}
@@ -814,7 +814,7 @@ void LocalizationMgr::handleBasicStopped( void )
if( m_xStringResourceManager.is() )
m_xStringResourceManager->setCurrentLocale( m_aLocaleBeforeBasicStart, true );
}
- catch(IllegalArgumentException&)
+ catch(const IllegalArgumentException&)
{
}
}
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index f4396a52ac21..496d076b0ac5 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -363,12 +363,12 @@ sal_Bool BasicCheckBox::EditedEntry( SvLBoxEntry* pEntry, const String& rNewText
pBindings->Update( SID_BASICIDE_LIBSELECTOR );
}
}
- catch ( container::ElementExistException& )
+ catch (const container::ElementExistException& )
{
ErrorBox( this, WB_OK | WB_DEF_OK, String( IDEResId( RID_STR_SBXNAMEALLREADYUSED ) ) ).Execute();
return sal_False;
}
- catch ( container::NoSuchElementException& )
+ catch (const container::NoSuchElementException& )
{
DBG_UNHANDLED_EXCEPTION();
return sal_False;
@@ -1190,7 +1190,7 @@ void LibPage::Export( void )
else
ExportAsBasic( aLibName );
}
- catch( util::VetoException& ) // user cancled operation
+ catch(const util::VetoException& ) // user cancled operation
{
}
}
@@ -1693,7 +1693,7 @@ void createLibImpl( Window* pWin, const ScriptDocument& rDocument,
}
}
}
- catch ( uno::Exception& )
+ catch (const uno::Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx
index ac77118f436f..786119b20375 100644
--- a/basctl/source/basicide/moduldlg.cxx
+++ b/basctl/source/basicide/moduldlg.cxx
@@ -422,7 +422,7 @@ sal_Bool ExtBasicTreeListBox::NotifyCopyingMoving( SvLBoxEntry* pTarget, SvLBoxE
}
}
}
- catch ( uno::Exception& )
+ catch (const uno::Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
@@ -919,7 +919,7 @@ void ObjectPage::DeleteCurrent()
if ( bSuccess )
BasicIDE::MarkDocumentModified( aDocument );
}
- catch ( container::NoSuchElementException& )
+ catch (const container::NoSuchElementException& )
{
DBG_UNHANDLED_EXCEPTION();
}
@@ -1048,12 +1048,12 @@ SbModule* createModImpl( Window* pWin, const ScriptDocument& rDocument,
}
}
}
- catch ( container::ElementExistException& )
+ catch (const container::ElementExistException& )
{
ErrorBox( pWin, WB_OK | WB_DEF_OK,
String( IDEResId( RID_STR_SBXNAMEALLREADYUSED2 ) ) ).Execute();
}
- catch ( container::NoSuchElementException& )
+ catch (const container::NoSuchElementException& )
{
DBG_UNHANDLED_EXCEPTION();
}
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index ab2e056119e8..915bca1f239f 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -128,7 +128,7 @@ void DlgEditor::ShowDialog()
Any aResourceResolver = xSrcDlgModPropSet->getPropertyValue( aResourceResolverPropName );
xNewDlgModPropSet->setPropertyValue( aResourceResolverPropName, aResourceResolver );
}
- catch( UnknownPropertyException& )
+ catch(const UnknownPropertyException& )
{
OSL_FAIL( "DlgEditor::ShowDialog(): No ResourceResolver property" );
}
@@ -146,7 +146,7 @@ void DlgEditor::ShowDialog()
xNewDlgModPropSet->setPropertyValue( aTitlePropName, makeAny( ::rtl::OUString() ) );
}
}
- catch( UnknownPropertyException& )
+ catch(const UnknownPropertyException& )
{}
}
@@ -820,7 +820,7 @@ void DlgEditor::Copy()
Any aResourceResolver = xDialogModelPropSet->getPropertyValue( aResourceResolverPropName );
aResourceResolver >>= xStringResourcePersistence;
}
- catch( UnknownPropertyException& )
+ catch(const UnknownPropertyException& )
{}
}
@@ -919,7 +919,7 @@ void DlgEditor::Paste()
Any aResourceResolver = xDialogModelPropSet->getPropertyValue( aResourceResolverPropName );
aResourceResolver >>= xStringResourceManager;
}
- catch( UnknownPropertyException& )
+ catch(const UnknownPropertyException& )
{}
}
bool bLocalized = false;
diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx
index ed6b49f130c1..037c41e82c62 100644
--- a/basctl/source/dlged/propbrw.cxx
+++ b/basctl/source/dlged/propbrw.cxx
@@ -159,7 +159,7 @@ PropBrw::PropBrw( const Reference< XMultiServiceFactory >& _xORB, SfxBindings* _
m_xMeAsFrame->setName(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "form property browser" ))); // change name!
}
}
- catch (Exception&)
+ catch (const Exception&)
{
OSL_FAIL("PropBrw::PropBrw: could not create/initialize my frame!");
m_xMeAsFrame.clear();
@@ -234,7 +234,7 @@ void PropBrw::ImplReCreateController()
m_xBrowserComponentWindow->setVisible(sal_True);
}
}
- catch (Exception&)
+ catch (const Exception&)
{
OSL_FAIL("PropBrw::PropBrw: could not create/initialize the browser controller!");
try
@@ -242,7 +242,7 @@ void PropBrw::ImplReCreateController()
::comphelper::disposeComponent(m_xBrowserController);
::comphelper::disposeComponent(m_xBrowserComponentWindow);
}
- catch(Exception&)
+ catch(const Exception&)
{
}