catch exception by constant reference
This commit is contained in:
parent
1688a9d923
commit
93a9f170be
@ -460,7 +460,7 @@ HRESULT DocumentHolder::InPlaceActivate(
|
||||
|
||||
m_pIOleIPSite->DiscardUndoState();
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
hr = ERROR;
|
||||
}
|
||||
@ -679,7 +679,7 @@ void DocumentHolder::DisconnectFrameDocument( sal_Bool bComplete )
|
||||
uno::Reference< util::XModifyBroadcaster > xModifiable( m_xDocument, uno::UNO_QUERY_THROW );
|
||||
xModifiable->removeModifyListener( (util::XModifyListener*)this );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
|
||||
try
|
||||
@ -688,7 +688,7 @@ void DocumentHolder::DisconnectFrameDocument( sal_Bool bComplete )
|
||||
m_xDocument, uno::UNO_QUERY_THROW );
|
||||
xBroadcaster->removeCloseListener( (util::XCloseListener*)this );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
|
||||
try
|
||||
@ -697,7 +697,7 @@ void DocumentHolder::DisconnectFrameDocument( sal_Bool bComplete )
|
||||
m_xFrame, uno::UNO_QUERY_THROW );
|
||||
xBroadcaster->removeCloseListener( (util::XCloseListener*)this );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
|
||||
if ( bComplete )
|
||||
@ -721,7 +721,7 @@ void DocumentHolder::CloseDocument()
|
||||
{
|
||||
xCloseable->close( sal_True );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
}
|
||||
|
||||
@ -738,7 +738,7 @@ void DocumentHolder::CloseFrame()
|
||||
m_xFrame, uno::UNO_QUERY_THROW );
|
||||
xBroadcaster->removeCloseListener( (util::XCloseListener*)this );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
|
||||
uno::Reference<util::XCloseable> xCloseable(
|
||||
@ -935,7 +935,7 @@ void DocumentHolder::show()
|
||||
uno::Reference< util::XModifyBroadcaster > xModifiable( m_xDocument, uno::UNO_QUERY_THROW );
|
||||
xModifiable->addModifyListener( (util::XModifyListener*)this );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
}
|
||||
|
||||
@ -943,7 +943,7 @@ void DocumentHolder::show()
|
||||
setTitle(m_aDocumentNamePart);
|
||||
}
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
OSL_FAIL( "Can not show the frame!\n" );
|
||||
}
|
||||
@ -1144,7 +1144,7 @@ IDispatch* DocumentHolder::GetIDispatch()
|
||||
CoTaskMemFree( pVariant );
|
||||
}
|
||||
}
|
||||
catch ( uno::Exception& )
|
||||
catch ( const uno::Exception& )
|
||||
{}
|
||||
}
|
||||
}
|
||||
@ -1204,7 +1204,7 @@ HRESULT DocumentHolder::SetExtent( const SIZEL *pSize )
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
}
|
||||
}
|
||||
@ -1238,7 +1238,7 @@ HRESULT DocumentHolder::GetExtent( SIZEL *pSize )
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
}
|
||||
}
|
||||
@ -1466,7 +1466,7 @@ DocumentHolder::notifyClosing(
|
||||
aSource.Source, uno::UNO_QUERY_THROW );
|
||||
xEventBroadcaster->removeCloseListener( (util::XCloseListener*)this );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
|
||||
if ( m_xDocument.is() && m_xDocument == aSource.Source )
|
||||
|
@ -246,7 +246,7 @@ STDMETHODIMP EmbedDocument_Impl::DoVerb(
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
return OLEOBJ_S_CANNOT_DOVERB_NOW;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ uno::Reference< io::XInputStream > createTempXInStreamFromIStream(
|
||||
}
|
||||
}
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -154,7 +154,7 @@ HRESULT copyXTempOutToIStream( uno::Reference< io::XOutputStream > xTempOut, ISt
|
||||
try {
|
||||
nReadBytes = xTempIn->readBytes( aBuffer, nConstBufferSize );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@ -430,7 +430,7 @@ STDMETHODIMP EmbedDocument_Impl::InitNew( IStorage *pStg )
|
||||
// xLoadable->load( fillArgsForLoading_Impl( uno::Reference< io::XInputStream >(), nStreamMode ) );
|
||||
hr = S_OK;
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -566,7 +566,7 @@ STDMETHODIMP EmbedDocument_Impl::Load( IStorage *pStg )
|
||||
hr = m_pDocHolder->SetExtent( &aSizeToSet );
|
||||
// hr = m_pDocHolder->SetVisArea( &aRectToSet );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -687,7 +687,7 @@ STDMETHODIMP EmbedDocument_Impl::Save( IStorage *pStgSave, BOOL fSameAsLoad )
|
||||
}
|
||||
}
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -818,7 +818,7 @@ STDMETHODIMP EmbedDocument_Impl::Load( LPCOLESTR pszFileName, DWORD /*dwMode*/ )
|
||||
|
||||
m_aFileName = ::rtl::OUString( reinterpret_cast<const sal_Unicode*>(pszFileName) );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -912,7 +912,7 @@ STDMETHODIMP EmbedDocument_Impl::Save( LPCOLESTR pszFileName, BOOL fRemember )
|
||||
|
||||
hr = S_OK;
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -563,7 +563,7 @@ Any SAL_CALL FilterAllListenerImpl::approveFiring( const AllEventObject& Event )
|
||||
convertToEventReturn( aRet, aRetType );
|
||||
}
|
||||
}
|
||||
catch( CannotConvertException& e )
|
||||
catch( const CannotConvertException& e )
|
||||
{
|
||||
throw InvocationTargetException( OUString(), Reference< XInterface >(), Any(&e, ::getCppuType( (CannotConvertException*)0)) );
|
||||
}
|
||||
@ -683,7 +683,7 @@ Reference<XEventListener> EventAttacherImpl::attachListenerForTarget(
|
||||
{
|
||||
rxMethod->invoke( aObject, args );
|
||||
}
|
||||
catch( InvocationTargetException& )
|
||||
catch( const InvocationTargetException& )
|
||||
{
|
||||
throw IntrospectionException();
|
||||
}
|
||||
@ -710,7 +710,7 @@ Reference<XEventListener> EventAttacherImpl::attachListenerForTarget(
|
||||
{
|
||||
rxMethod->invoke( aObject, args );
|
||||
}
|
||||
catch( InvocationTargetException& )
|
||||
catch( const InvocationTargetException& )
|
||||
{
|
||||
throw IntrospectionException();
|
||||
}
|
||||
@ -860,7 +860,7 @@ void EventAttacherImpl::removeListener
|
||||
{
|
||||
rxMethod->invoke( aObjAny, args );
|
||||
}
|
||||
catch( InvocationTargetException& )
|
||||
catch( const InvocationTargetException& )
|
||||
{
|
||||
throw IntrospectionException();
|
||||
}
|
||||
@ -885,7 +885,7 @@ void EventAttacherImpl::removeListener
|
||||
{
|
||||
rxMethod->invoke( aObjAny, args );
|
||||
}
|
||||
catch( InvocationTargetException& )
|
||||
catch( const InvocationTargetException& )
|
||||
{
|
||||
throw IntrospectionException();
|
||||
}
|
||||
|
@ -338,7 +338,7 @@ void BibliographyLoader::loadView(const Reference< XFrame > & rFrame, const rtl:
|
||||
Any a = xPropSet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" )));
|
||||
a >>= xLayoutManager;
|
||||
}
|
||||
catch ( uno::Exception& )
|
||||
catch ( const uno::Exception& )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -406,7 +406,7 @@ sal_Bool BibFrameController_Impl::SaveModified(const Reference< form::runtime::X
|
||||
_xCursor->updateRow();
|
||||
bResult = sal_True;
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("SaveModified: Exception occurred!");
|
||||
}
|
||||
@ -594,7 +594,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
|
||||
Reference< XResultSetUpdate > xUpdateCursor( pDatMan->getForm(), UNO_QUERY );
|
||||
xUpdateCursor->moveToInsertRow();
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("Exception in last() or moveToInsertRow()");
|
||||
}
|
||||
@ -634,7 +634,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
|
||||
if (bSuccess)
|
||||
xUpdateCursor->deleteRow();
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
bSuccess = sal_False;
|
||||
}
|
||||
@ -654,7 +654,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
|
||||
// Datensatz bewegen um Stati neu zu setzen
|
||||
xCursor->first();
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("DeleteRecord : exception caught !");
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ void BibPosListener::cursorMoved(const lang::EventObject& /*aEvent*/) throw( uno
|
||||
uno::Any aVal = xValueAcc->getByName(uTypeMapping);
|
||||
uno::Reference< uno::XInterface > xInt = *(uno::Reference< uno::XInterface > *)aVal.getValue();
|
||||
uno::Reference< sdb::XColumn > xCol(xInt, UNO_QUERY);
|
||||
DBG_ASSERT(xCol.is(), "BibPosListener::positioned : invalid column (no sdb::XColumn) !");
|
||||
DBG_ASSERT(xCol.is(), "BibPosListener::cursorMoved : invalid column (no sdb::XColumn) !");
|
||||
if (xCol.is())
|
||||
{
|
||||
nTempVal = xCol->getShort();
|
||||
@ -179,10 +179,9 @@ void BibPosListener::cursorMoved(const lang::EventObject& /*aEvent*/) throw( uno
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(Exception& rEx)
|
||||
catch(const Exception&)
|
||||
{
|
||||
(void) rEx; // make compiler happy
|
||||
OSL_FAIL("BibPosListener::positioned: something went wrong !");
|
||||
OSL_FAIL("BibPosListener::cursorMoved: something went wrong !");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ bool LdapUserProfileBe::readLdapConfiguration(
|
||||
getLdapStringParam(xAccess, kUser, definition->mAnonUser);
|
||||
getLdapStringParam(xAccess, kPassword, definition->mAnonCredentials);
|
||||
}
|
||||
catch (uno::Exception & e)
|
||||
catch (const uno::Exception & e)
|
||||
{
|
||||
OSL_TRACE("LdapUserProfileBackend: access to configuration data failed: %s",
|
||||
rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ).getStr() );
|
||||
|
@ -154,7 +154,7 @@ namespace dbp
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OTableSelectionPage::initializePage: caught an exception!");
|
||||
}
|
||||
@ -189,7 +189,7 @@ namespace dbp
|
||||
if (!updateContext())
|
||||
return sal_False;
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OTableSelectionPage::commitPage: caught an exception!");
|
||||
}
|
||||
@ -311,10 +311,10 @@ namespace dbp
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(SQLContext& e) { aSQLException <<= e; }
|
||||
catch(SQLWarning& e) { aSQLException <<= e; }
|
||||
catch(SQLException& e) { aSQLException <<= e; }
|
||||
catch (Exception&)
|
||||
catch(const SQLContext& e) { aSQLException <<= e; }
|
||||
catch(const SQLWarning& e) { aSQLException <<= e; }
|
||||
catch(const SQLException& e) { aSQLException <<= e; }
|
||||
catch (const Exception&)
|
||||
{
|
||||
OSL_FAIL("OTableSelectionPage::implFillTables: could not fill the table list!");
|
||||
}
|
||||
@ -343,10 +343,10 @@ namespace dbp
|
||||
aQueryNames = xQueries->getElementNames();
|
||||
}
|
||||
}
|
||||
catch(SQLContext& e) { aSQLException <<= e; }
|
||||
catch(SQLWarning& e) { aSQLException <<= e; }
|
||||
catch(SQLException& e) { aSQLException <<= e; }
|
||||
catch (Exception&)
|
||||
catch(const SQLContext& e) { aSQLException <<= e; }
|
||||
catch(const SQLWarning& e) { aSQLException <<= e; }
|
||||
catch(const SQLException& e) { aSQLException <<= e; }
|
||||
catch (const Exception&)
|
||||
{
|
||||
OSL_FAIL("OTableSelectionPage::implFillTables: could not fill the table list!");
|
||||
}
|
||||
@ -363,7 +363,7 @@ namespace dbp
|
||||
if ( xHandler.is() )
|
||||
xHandler->handle(xRequest);
|
||||
}
|
||||
catch(Exception&) { }
|
||||
catch(const Exception&) { }
|
||||
return;
|
||||
}
|
||||
|
||||
@ -387,7 +387,7 @@ namespace dbp
|
||||
if (m_xDSContext.is())
|
||||
fillListBox(m_aDatasource, m_xDSContext->getElementNames());
|
||||
}
|
||||
catch (Exception&)
|
||||
catch (const Exception&)
|
||||
{
|
||||
OSL_FAIL("OTableSelectionPage::implCollectDatasource: could not collect the data source names!");
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ namespace dbp
|
||||
{
|
||||
getContext().xObjectModel->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ClassId"))) >>= nClassId;
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OControlWizard::activate: could not obtain the class id!");
|
||||
}
|
||||
@ -430,7 +430,7 @@ namespace dbp
|
||||
}
|
||||
m_aContext.xDrawPage = xPage;
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OControlWizard::implDeterminePage: caught an exception!");
|
||||
}
|
||||
@ -452,7 +452,7 @@ namespace dbp
|
||||
m_aContext.xDatasourceContext = Reference< XNameAccess >(xContext, UNO_QUERY);
|
||||
DBG_ASSERT(m_aContext.xDatasourceContext.is() || !xContext.is(), "OControlWizard::implGetDSContext: invalid database context (missing the XNameAccess)!");
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OControlWizard::implGetDSContext: invalid database context!");
|
||||
}
|
||||
@ -524,7 +524,7 @@ namespace dbp
|
||||
if (getServiceFactory().is())
|
||||
xHandler = Reference< XInteractionHandler >(getServiceFactory()->createInstance(sInteractionHandlerServiceName), UNO_QUERY);
|
||||
}
|
||||
catch(Exception&) { }
|
||||
catch(const Exception&) { }
|
||||
if (!xHandler.is())
|
||||
ShowServiceNotAvailableError(_pWindow, sInteractionHandlerServiceName, sal_True);
|
||||
return xHandler;
|
||||
@ -642,7 +642,7 @@ namespace dbp
|
||||
xColumns->getByName(*pBegin) >>= xColumn;
|
||||
xColumn->getPropertyValue(s_sFieldTypeProperty) >>= nFieldType;
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OControlWizard::initContext: unexpected exception while gathering column information!");
|
||||
}
|
||||
@ -650,10 +650,10 @@ namespace dbp
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(SQLContext& e) { aSQLException <<= e; }
|
||||
catch(SQLWarning& e) { aSQLException <<= e; }
|
||||
catch(SQLException& e) { aSQLException <<= e; }
|
||||
catch(Exception&)
|
||||
catch(const SQLContext& e) { aSQLException <<= e; }
|
||||
catch(const SQLWarning& e) { aSQLException <<= e; }
|
||||
catch(const SQLException& e) { aSQLException <<= e; }
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OControlWizard::initContext: could not retrieve the control context (caught an exception)!");
|
||||
}
|
||||
@ -678,7 +678,7 @@ namespace dbp
|
||||
{
|
||||
xHandler->handle(xRequest);
|
||||
}
|
||||
catch(Exception&) { }
|
||||
catch(const Exception&) { }
|
||||
return sal_False;
|
||||
}
|
||||
|
||||
@ -706,7 +706,7 @@ namespace dbp
|
||||
);
|
||||
}
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OControlWizard::commitControlSettings: could not commit the basic control settings!");
|
||||
}
|
||||
@ -731,7 +731,7 @@ namespace dbp
|
||||
_pSettings->sControlLabel = sControlLabel;
|
||||
}
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OControlWizard::initControlSettings: could not retrieve the basic control settings!");
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ namespace dbp
|
||||
// can't do anything ... no free names
|
||||
_rElementsName = sBase;
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("::dbp::disambiguateName: something went (strangely) wrong!");
|
||||
}
|
||||
|
@ -223,7 +223,7 @@ namespace dbp
|
||||
// insert the column
|
||||
xColumnContainer->insertByName(sColumnName, makeAny(xColumn));
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL( ( ::rtl::OString("OGridWizard::implApplySettings: unexpected exception while creating the grid column for field ")
|
||||
+= ::rtl::OString(pFormFieldName->getStr(), pFormFieldName->getLength(), osl_getThreadTextEncoding())
|
||||
|
@ -173,7 +173,7 @@ namespace dbp
|
||||
OOptionGroupLayouter aLayouter(getServiceFactory());
|
||||
aLayouter.doLayout(getContext(), getSettings());
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OGroupBoxWizard::createRadios: caught an exception while creating the radio shapes!");
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ namespace dbp
|
||||
// the bound field
|
||||
getContext().xObjectModel->setPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DataField")), makeAny(::rtl::OUString(getSettings().sLinkedFormField)));
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OListComboWizard::implApplySettings: could not set the property values for the listbox!");
|
||||
}
|
||||
@ -277,7 +277,7 @@ namespace dbp
|
||||
if (xColumns.is())
|
||||
aColumnNames = xColumns->getElementNames();
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
DBG_ASSERT(!_bNeedIt, "OLinkFieldsPage::initializePage: caught an exception while retrieving the columns!");
|
||||
}
|
||||
@ -349,7 +349,7 @@ namespace dbp
|
||||
aTableNames = xTables->getElementNames();
|
||||
fillListBox(m_aSelectTable, aTableNames);
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OContentTableSelection::initializePage: could not retrieve the table names!");
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ sal_Bool SoPluginInstance::LoadDocument(NSP_HWND hParent)
|
||||
if ( xLMProps.is() )
|
||||
xLMProps->setPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("AutomaticToolbars")), uno::makeAny( (sal_Bool)sal_False ) );
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
|
||||
// get frames supplier
|
||||
@ -345,10 +345,10 @@ sal_Bool SoPluginInstance::LoadDocument(NSP_HWND hParent)
|
||||
xProps->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFullScreen" ) ), uno::makeAny( sal_False ) );
|
||||
xPres->start();
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
}
|
||||
catch( uno::Exception& e )
|
||||
catch( const uno::Exception& e )
|
||||
{
|
||||
debug_fprintf(NSP_LOG_APPEND, "Unknown exception while loading document in netscape plugin windows\n");
|
||||
OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
|
||||
@ -424,7 +424,7 @@ sal_Bool SoPluginInstance::Destroy(void)
|
||||
xCloseable->removeCloseListener( m_xCloseListener );
|
||||
}
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{}
|
||||
|
||||
try
|
||||
@ -439,7 +439,7 @@ sal_Bool SoPluginInstance::Destroy(void)
|
||||
|
||||
xDocumentCloser->dispose(); // this call should close the document
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
debug_fprintf(NSP_LOG_APPEND, "print by Nsplugin.exe, could not close the document correctly!\n");
|
||||
try
|
||||
|
@ -347,7 +347,7 @@ Reference< lang::XMultiServiceFactory > SAL_CALL start_office(NSP_PIPE_FD read_f
|
||||
debug_fprintf(NSP_LOG_APPEND, "Staroffice already start\n");
|
||||
return Reference< lang::XMultiServiceFactory >(xRemoteContext->getServiceManager(), UNO_QUERY);
|
||||
}
|
||||
catch ( connection::NoConnectException & )
|
||||
catch ( const connection::NoConnectException & )
|
||||
{
|
||||
}
|
||||
|
||||
@ -411,7 +411,7 @@ Reference< lang::XMultiServiceFactory > SAL_CALL start_office(NSP_PIPE_FD read_f
|
||||
xUrlResolver->resolve( sConnectString ), UNO_QUERY_THROW );
|
||||
return Reference< lang::XMultiServiceFactory >(xRemoteContext->getServiceManager(), UNO_QUERY);
|
||||
}
|
||||
catch ( connection::NoConnectException & )
|
||||
catch ( const connection::NoConnectException & )
|
||||
{
|
||||
// wait 500 ms, then try to connect again
|
||||
TimeValue tv = { 0 /* secs */, 500000000 /* nanosecs */ };
|
||||
@ -421,7 +421,7 @@ Reference< lang::XMultiServiceFactory > SAL_CALL start_office(NSP_PIPE_FD read_f
|
||||
debug_fprintf(NSP_LOG_APPEND, "Failed to connect to Staroffice in 2 minutes\n");
|
||||
return Reference< lang::XMultiServiceFactory >(NULL);
|
||||
}
|
||||
catch ( Exception & e)
|
||||
catch (const Exception & e)
|
||||
{
|
||||
debug_fprintf(NSP_LOG_APPEND, "unexpected UNO exception caught: ");
|
||||
debug_fprintf(NSP_LOG_APPEND, (sal_Char *)e.Message.getStr());
|
||||
|
@ -195,7 +195,7 @@ Any SAL_CALL IUnknownWrapper_Impl::invokeGetProperty( const OUString& aPropertyN
|
||||
}
|
||||
aResult = invokeWithDispIdComTlb( aDescGet, aPropertyName, aParams, aOutParamIndex, aOutParam );
|
||||
}
|
||||
catch ( Exception& e )
|
||||
catch ( const Exception& e )
|
||||
{
|
||||
throw RuntimeException(OUSTR("[automation bridge] unexpected exception in "
|
||||
"IUnknownWrapper_Impl::invokeGetProperty ! Message : \n") +
|
||||
@ -223,7 +223,7 @@ Any SAL_CALL IUnknownWrapper_Impl::invokePutProperty( const OUString& aPropertyN
|
||||
}
|
||||
aResult = invokeWithDispIdComTlb( aDescPut, aPropertyName, aParams, aOutParamIndex, aOutParam );
|
||||
}
|
||||
catch ( Exception& e )
|
||||
catch ( const Exception& e )
|
||||
{
|
||||
throw RuntimeException(OUSTR("[automation bridge] unexpected exception in "
|
||||
"IUnknownWrapper_Impl::invokePutProperty ! Message : \n") +
|
||||
@ -269,23 +269,23 @@ Any SAL_CALL IUnknownWrapper_Impl::invoke( const OUString& aFunctionName,
|
||||
aOutParam);
|
||||
}
|
||||
}
|
||||
catch (IllegalArgumentException &)
|
||||
catch (const IllegalArgumentException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (CannotConvertException &)
|
||||
catch (const CannotConvertException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (InvocationTargetException &)
|
||||
catch (const InvocationTargetException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (BridgeRuntimeError & e)
|
||||
catch (const BridgeRuntimeError & e)
|
||||
{
|
||||
throw RuntimeException(e.message, Reference<XInterface>());
|
||||
}
|
||||
catch (Exception & e)
|
||||
catch (const Exception & e)
|
||||
{
|
||||
throw RuntimeException(OUSTR("[automation bridge] unexpected exception in "
|
||||
"IUnknownWrapper_Impl::invoke ! Message : \n") +
|
||||
@ -447,20 +447,20 @@ void SAL_CALL IUnknownWrapper_Impl::setValue( const OUString& aPropertyName,
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (CannotConvertException &)
|
||||
catch (const CannotConvertException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (UnknownPropertyException &)
|
||||
catch (const UnknownPropertyException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (BridgeRuntimeError& e)
|
||||
catch (const BridgeRuntimeError& e)
|
||||
{
|
||||
throw RuntimeException(
|
||||
e.message, Reference<XInterface>());
|
||||
}
|
||||
catch (Exception & e)
|
||||
catch (const Exception & e)
|
||||
{
|
||||
throw RuntimeException(OUSTR("[automation bridge] unexpected exception in "
|
||||
"IUnknownWrapper_Impl::setValue ! Message : \n") +
|
||||
@ -633,16 +633,16 @@ Any SAL_CALL IUnknownWrapper_Impl::getValue( const OUString& aPropertyName )
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (UnknownPropertyException& )
|
||||
catch ( const UnknownPropertyException& )
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (BridgeRuntimeError& e)
|
||||
catch (const BridgeRuntimeError& e)
|
||||
{
|
||||
throw RuntimeException(
|
||||
e.message, Reference<XInterface>());
|
||||
}
|
||||
catch (Exception & e)
|
||||
catch (const Exception & e)
|
||||
{
|
||||
throw RuntimeException(OUSTR("[automation bridge] unexpected exception in "
|
||||
"IUnknownWrapper_Impl::getValue ! Message : \n") +
|
||||
@ -689,11 +689,11 @@ sal_Bool SAL_CALL IUnknownWrapper_Impl::hasMethod( const OUString& aName )
|
||||
else
|
||||
ret = sal_True;
|
||||
}
|
||||
catch (BridgeRuntimeError& e)
|
||||
catch (const BridgeRuntimeError& e)
|
||||
{
|
||||
throw RuntimeException(e.message, Reference<XInterface>());
|
||||
}
|
||||
catch (Exception & e)
|
||||
catch (const Exception & e)
|
||||
{
|
||||
throw RuntimeException(OUSTR("[automation bridge] unexpected exception in "
|
||||
"IUnknownWrapper_Impl::hasMethod ! Message : \n") +
|
||||
@ -739,11 +739,11 @@ sal_Bool SAL_CALL IUnknownWrapper_Impl::hasProperty( const OUString& aName )
|
||||
ret = sal_True;
|
||||
}
|
||||
}
|
||||
catch (BridgeRuntimeError& e)
|
||||
catch (const BridgeRuntimeError& e)
|
||||
{
|
||||
throw RuntimeException(e.message, Reference<XInterface>());
|
||||
}
|
||||
catch (Exception & e)
|
||||
catch (const Exception & e)
|
||||
{
|
||||
throw RuntimeException(OUSTR("[automation bridge] unexpected exception in "
|
||||
"IUnknownWrapper_Impl::hasProperty ! Message : \n") +
|
||||
@ -1273,9 +1273,9 @@ void SAL_CALL IUnknownWrapper_Impl::initialize( const Sequence< Any >& aArgument
|
||||
// so we should allow to create wrappers for them as well
|
||||
pType = getTypeInfo();
|
||||
}
|
||||
catch( BridgeRuntimeError& )
|
||||
catch( const BridgeRuntimeError& )
|
||||
{}
|
||||
catch( Exception& )
|
||||
catch( const Exception& )
|
||||
{}
|
||||
|
||||
if ( pType )
|
||||
@ -1315,11 +1315,11 @@ void SAL_CALL IUnknownWrapper_Impl::initialize( const Sequence< Any >& aArgument
|
||||
m_sDefaultMember = usName;
|
||||
}
|
||||
}
|
||||
catch ( BridgeRuntimeError & e )
|
||||
catch ( const BridgeRuntimeError & e )
|
||||
{
|
||||
throw RuntimeException( e.message, Reference<XInterface>() );
|
||||
}
|
||||
catch( Exception& e )
|
||||
catch( const Exception& e )
|
||||
{
|
||||
throw RuntimeException(
|
||||
OUSTR("[automation bridge] unexpected exception in IUnknownWrapper_Impl::initialiase() error message: \n") + e.Message,
|
||||
|
@ -452,7 +452,7 @@ Any SAL_CALL OleConverter_Impl2::createBridge(const Any& modelDepObject,
|
||||
{
|
||||
variantToAny(pVariant, ret);
|
||||
}
|
||||
catch (CannotConvertException & e)
|
||||
catch (const CannotConvertException & e)
|
||||
{
|
||||
throw IllegalArgumentException(
|
||||
e.Message, 0, -1);
|
||||
|
@ -392,14 +392,14 @@ void UnoConversionUtilities<T>::variantToAny( const VARIANTARG* pArg, Any& rAny,
|
||||
Any convAny = conv->convertTo(anySeq, ptype);
|
||||
rAny = convAny;
|
||||
}
|
||||
catch (IllegalArgumentException& e)
|
||||
catch (const IllegalArgumentException& e)
|
||||
{
|
||||
throw BridgeRuntimeError(
|
||||
OUSTR("[automation bridge]com.sun.star.lang.IllegalArgumentException "
|
||||
"in UnoConversionUtilities<T>::variantToAny! Message: ") +
|
||||
e.Message);
|
||||
}
|
||||
catch (CannotConvertException& e)
|
||||
catch (const CannotConvertException& e)
|
||||
{
|
||||
throw BridgeRuntimeError(
|
||||
OUSTR("[automation bridge]com.sun.star.script.CannotConvertException "
|
||||
@ -582,19 +582,19 @@ void UnoConversionUtilities<T>::variantToAny( const VARIANTARG* pArg, Any& rAny,
|
||||
"The provided VARIANT of type\" ") + OUString::valueOf((sal_Int32) var.vt) +
|
||||
OUSTR("\" is unappropriate for conversion!"), Reference<XInterface>(), -1);
|
||||
}
|
||||
catch (CannotConvertException &)
|
||||
catch (const CannotConvertException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (IllegalArgumentException &)
|
||||
catch (const IllegalArgumentException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (BridgeRuntimeError &)
|
||||
catch (const BridgeRuntimeError &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (Exception & e)
|
||||
catch (const Exception & e)
|
||||
{
|
||||
throw BridgeRuntimeError(OUSTR("[automation bridge] unexpected exception in "
|
||||
"UnoConversionUtilities<T>::variantToAny ! Message : \n") +
|
||||
@ -666,19 +666,19 @@ void UnoConversionUtilities<T>::anyToVariant(VARIANT* pVariant, const Any& rAny,
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IllegalArgumentException &)
|
||||
catch (const IllegalArgumentException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (CannotConvertException & )
|
||||
catch (const CannotConvertException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (BridgeRuntimeError&)
|
||||
catch (const BridgeRuntimeError&)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch(Exception & e)
|
||||
catch(const Exception & e)
|
||||
{
|
||||
throw BridgeRuntimeError(
|
||||
OUSTR("[automation bridge]UnoConversionUtilities<T>::anyToVariant \n"
|
||||
@ -998,19 +998,19 @@ void UnoConversionUtilities<T>::anyToVariant(VARIANT* pVariant, const Any& rAny)
|
||||
|
||||
}
|
||||
}
|
||||
catch (CannotConvertException & )
|
||||
catch (const CannotConvertException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (IllegalArgumentException & )
|
||||
catch (const IllegalArgumentException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch(BridgeRuntimeError&)
|
||||
catch(const BridgeRuntimeError&)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch(Exception & e)
|
||||
catch(const Exception & e)
|
||||
{
|
||||
throw BridgeRuntimeError(
|
||||
OUSTR("[automation bridge]UnoConversionUtilities<T>::anyToVariant \n"
|
||||
@ -1633,19 +1633,19 @@ void UnoConversionUtilities<T>::variantToAny( const VARIANT* pVariant, Any& rAny
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IllegalArgumentException & )
|
||||
catch (const IllegalArgumentException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (CannotConvertException &)
|
||||
catch (const CannotConvertException &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (BridgeRuntimeError & )
|
||||
catch (const BridgeRuntimeError &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (Exception & e)
|
||||
catch (const Exception & e)
|
||||
{
|
||||
throw BridgeRuntimeError(OUSTR("[automation bridge] unexpected exception in "
|
||||
"UnoConversionUtilities<T>::variantToAny ! Message : \n") +
|
||||
@ -1979,11 +1979,11 @@ bool UnoConversionUtilities<T>::convertValueObject( const VARIANTARG *var, Any&
|
||||
throw BridgeRuntimeError(
|
||||
OUSTR("[automation bridge] Conversion of ValueObject failed "));
|
||||
}
|
||||
catch (BridgeRuntimeError &)
|
||||
catch (const BridgeRuntimeError &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (Exception & e)
|
||||
catch (const Exception & e)
|
||||
{
|
||||
throw BridgeRuntimeError(OUSTR("[automation bridge] unexpected exception in "
|
||||
"UnoConversionUtilities<T>::convertValueObject ! Message : \n") +
|
||||
@ -2120,11 +2120,11 @@ void UnoConversionUtilities<T>::dispatchExObject2Sequence( const VARIANTARG* pva
|
||||
throw BridgeRuntimeError(
|
||||
OUSTR("[automation bridge] Conversion of ValueObject failed "));
|
||||
}
|
||||
catch (BridgeRuntimeError & )
|
||||
catch (const BridgeRuntimeError &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (Exception & e)
|
||||
catch (const Exception & e)
|
||||
{
|
||||
throw BridgeRuntimeError(OUSTR("[automation bridge] unexpected exception in "
|
||||
"UnoConversionUtilities<T>::convertValueObject ! Message : \n") +
|
||||
|
@ -297,11 +297,11 @@ STDMETHODIMP InterfaceOleWrapper_Impl::GetIDsOfNames(REFIID /*riid*/,
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(BridgeRuntimeError& )
|
||||
catch(const BridgeRuntimeError&)
|
||||
{
|
||||
OSL_ASSERT(0);
|
||||
}
|
||||
catch(Exception& )
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_ASSERT(0);
|
||||
}
|
||||
@ -470,7 +470,7 @@ sal_Bool InterfaceOleWrapper_Impl::getInvocationInfoForCall( DISPID id, Invocat
|
||||
try{
|
||||
invInfo= inv2->getInfoForName( sMemberName, sal_False);
|
||||
}
|
||||
catch( IllegalArgumentException )
|
||||
catch(const IllegalArgumentException&)
|
||||
{
|
||||
validInfo= sal_False;
|
||||
}
|
||||
@ -880,12 +880,12 @@ STDMETHODIMP InterfaceOleWrapper_Impl::Invoke(DISPID dispidMember,
|
||||
else
|
||||
ret = DISP_E_MEMBERNOTFOUND;
|
||||
}
|
||||
catch(BridgeRuntimeError& e)
|
||||
catch(const BridgeRuntimeError& e)
|
||||
{
|
||||
writeExcepinfo(pexcepinfo, e.message);
|
||||
ret = DISP_E_EXCEPTION;
|
||||
}
|
||||
catch(Exception& e)
|
||||
catch(const Exception& e)
|
||||
{
|
||||
OUString message= OUSTR("InterfaceOleWrapper_Impl::Invoke : \n") +
|
||||
e.Message;
|
||||
@ -948,17 +948,17 @@ HRESULT InterfaceOleWrapper_Impl::doInvoke( DISPPARAMS * pdispparams, VARIANT *
|
||||
if (pvarResult != NULL)
|
||||
anyToVariant(pvarResult, returnValue);
|
||||
}
|
||||
catch(IllegalArgumentException & e) //XInvocation::invoke
|
||||
catch(const IllegalArgumentException & e) //XInvocation::invoke
|
||||
{
|
||||
writeExcepinfo(pexcepinfo, e.Message);
|
||||
ret = DISP_E_TYPEMISMATCH;
|
||||
}
|
||||
catch(CannotConvertException & e) //XInvocation::invoke
|
||||
catch(const CannotConvertException & e) //XInvocation::invoke
|
||||
{
|
||||
writeExcepinfo(pexcepinfo, e.Message);
|
||||
ret = mapCannotConvertException( e, puArgErr);
|
||||
}
|
||||
catch(InvocationTargetException & e) //XInvocation::invoke
|
||||
catch(const InvocationTargetException & e) //XInvocation::invoke
|
||||
{
|
||||
const Any& org = e.TargetException;
|
||||
Exception excTarget;
|
||||
@ -968,17 +968,17 @@ HRESULT InterfaceOleWrapper_Impl::doInvoke( DISPPARAMS * pdispparams, VARIANT *
|
||||
writeExcepinfo(pexcepinfo, message);
|
||||
ret = DISP_E_EXCEPTION;
|
||||
}
|
||||
catch(NoSuchMethodException & e) //XInvocation::invoke
|
||||
catch(const NoSuchMethodException & e) //XInvocation::invoke
|
||||
{
|
||||
writeExcepinfo(pexcepinfo, e.Message);
|
||||
ret = DISP_E_MEMBERNOTFOUND;
|
||||
}
|
||||
catch(BridgeRuntimeError & e)
|
||||
catch(const BridgeRuntimeError & e)
|
||||
{
|
||||
writeExcepinfo(pexcepinfo, e.message);
|
||||
ret = DISP_E_EXCEPTION;
|
||||
}
|
||||
catch(Exception & e)
|
||||
catch(const Exception & e)
|
||||
{
|
||||
OUString message= OUSTR("InterfaceOleWrapper_Impl::doInvoke : \n") +
|
||||
e.Message;
|
||||
@ -1008,17 +1008,17 @@ HRESULT InterfaceOleWrapper_Impl::doGetProperty( DISPPARAMS * /*pdispparams*/, V
|
||||
if (pvarResult)
|
||||
anyToVariant(pvarResult, returnValue);
|
||||
}
|
||||
catch(UnknownPropertyException e) //XInvocation::getValue
|
||||
catch(const UnknownPropertyException e) //XInvocation::getValue
|
||||
{
|
||||
writeExcepinfo(pexcepinfo, e.Message);
|
||||
ret = DISP_E_MEMBERNOTFOUND;
|
||||
}
|
||||
catch(BridgeRuntimeError& e)
|
||||
catch(const BridgeRuntimeError& e)
|
||||
{
|
||||
writeExcepinfo(pexcepinfo, e.message);
|
||||
ret = DISP_E_EXCEPTION;
|
||||
}
|
||||
catch(Exception& e)
|
||||
catch(const Exception& e)
|
||||
{
|
||||
OUString message= OUSTR("InterfaceOleWrapper_Impl::doGetProperty : \n") +
|
||||
e.Message;
|
||||
@ -1043,15 +1043,15 @@ HRESULT InterfaceOleWrapper_Impl::doSetProperty( DISPPARAMS * /*pdispparams*/, V
|
||||
{
|
||||
m_xInvocation->setValue( name, params.getConstArray()[0]);
|
||||
}
|
||||
catch(UnknownPropertyException )
|
||||
catch(const UnknownPropertyException &)
|
||||
{
|
||||
ret = DISP_E_MEMBERNOTFOUND;
|
||||
}
|
||||
catch(CannotConvertException e)
|
||||
catch(const CannotConvertException &e)
|
||||
{
|
||||
ret= mapCannotConvertException( e, puArgErr);
|
||||
}
|
||||
catch(InvocationTargetException e)
|
||||
catch(const InvocationTargetException &e)
|
||||
{
|
||||
if (pexcepinfo != NULL)
|
||||
{
|
||||
@ -1177,12 +1177,12 @@ HRESULT InterfaceOleWrapper_Impl::InvokeGeneral( DISPID dispidMember, unsigned s
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(BridgeRuntimeError & e)
|
||||
catch(const BridgeRuntimeError & e)
|
||||
{
|
||||
writeExcepinfo(pexcepinfo, e.message);
|
||||
ret = DISP_E_EXCEPTION;
|
||||
}
|
||||
catch(Exception & e)
|
||||
catch(const Exception & e)
|
||||
{
|
||||
OUString message= OUSTR("InterfaceOleWrapper_Impl::InvokeGeneral : \n") +
|
||||
e.Message;
|
||||
@ -1578,12 +1578,12 @@ STDMETHODIMP UnoObjectWrapperRemoteOpt::Invoke ( DISPID dispidMember, REFIID /*
|
||||
ret= DISP_E_MEMBERNOTFOUND;
|
||||
}
|
||||
}
|
||||
catch(BridgeRuntimeError& e)
|
||||
catch(const BridgeRuntimeError& e)
|
||||
{
|
||||
writeExcepinfo(pexcepinfo, e.message);
|
||||
ret = DISP_E_EXCEPTION;
|
||||
}
|
||||
catch(Exception& e)
|
||||
catch(const Exception& e)
|
||||
{
|
||||
OUString message= OUSTR("UnoObjectWrapperRemoteOpt::Invoke : \n") +
|
||||
e.Message;
|
||||
@ -1609,7 +1609,7 @@ HRESULT UnoObjectWrapperRemoteOpt::methodInvoke( DISPID /*dispidMember*/, DISPPA
|
||||
|
||||
|
||||
// The returned HRESULT is only appropriate for IDispatch::Invoke
|
||||
static HRESULT mapCannotConvertException( CannotConvertException e, unsigned int * puArgErr)
|
||||
static HRESULT mapCannotConvertException(const CannotConvertException &e, unsigned int * puArgErr)
|
||||
{
|
||||
HRESULT ret;
|
||||
sal_Bool bWriteIndex= sal_True;
|
||||
|
@ -190,7 +190,7 @@ if( pCont ) \
|
||||
{ \
|
||||
pListener->MethodName( aEvt ); \
|
||||
} \
|
||||
catch( RuntimeException& ) \
|
||||
catch(const RuntimeException&) \
|
||||
{ \
|
||||
/* ignore all usr system exceptions from the listener */ \
|
||||
} \
|
||||
|
@ -199,9 +199,8 @@ IMPL_LINK( AsynchronousGetURL, getURL, XPlugin_Impl*, pImpl )
|
||||
aUrl,
|
||||
aTarget );
|
||||
}
|
||||
catch( ::com::sun::star::plugin::PluginException& e )
|
||||
catch(const ::com::sun::star::plugin::PluginException&)
|
||||
{
|
||||
(void)e;
|
||||
}
|
||||
pImpl->leavePluginCallback();
|
||||
delete this;
|
||||
@ -323,7 +322,7 @@ extern "C" {
|
||||
);
|
||||
pImpl->leavePluginCallback();
|
||||
}
|
||||
catch( ::com::sun::star::plugin::PluginException& e )
|
||||
catch( const ::com::sun::star::plugin::PluginException& e )
|
||||
{
|
||||
pImpl->leavePluginCallback();
|
||||
return e.ErrorCode;
|
||||
@ -365,7 +364,7 @@ extern "C" {
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > ( pListener ) );
|
||||
pImpl->leavePluginCallback();
|
||||
}
|
||||
catch( ::com::sun::star::plugin::PluginException& e )
|
||||
catch( const ::com::sun::star::plugin::PluginException& e )
|
||||
{
|
||||
pImpl->leavePluginCallback();
|
||||
return e.ErrorCode;
|
||||
@ -394,7 +393,7 @@ extern "C" {
|
||||
file );
|
||||
pImpl->leavePluginCallback();
|
||||
}
|
||||
catch( ::com::sun::star::plugin::PluginException& e )
|
||||
catch( const ::com::sun::star::plugin::PluginException& e )
|
||||
{
|
||||
pImpl->leavePluginCallback();
|
||||
return e.ErrorCode;
|
||||
@ -479,7 +478,7 @@ extern "C" {
|
||||
displayStatusText( pImpl, ::rtl::OStringToOUString( message, pImpl->getTextEncoding() ) );
|
||||
pImpl->leavePluginCallback();
|
||||
}
|
||||
catch( ::com::sun::star::plugin::PluginException& )
|
||||
catch( const ::com::sun::star::plugin::PluginException& )
|
||||
{
|
||||
pImpl->leavePluginCallback();
|
||||
return;
|
||||
@ -504,7 +503,7 @@ extern "C" {
|
||||
free( pAgent );
|
||||
pAgent = strdup( ::rtl::OUStringToOString( UserAgent, pImpl->getTextEncoding() ).getStr() );
|
||||
}
|
||||
catch( ::com::sun::star::plugin::PluginException& )
|
||||
catch( const ::com::sun::star::plugin::PluginException& )
|
||||
{
|
||||
pImpl->leavePluginCallback();
|
||||
}
|
||||
|
@ -328,7 +328,7 @@ void XPlugin_Impl::handleSpecialArgs()
|
||||
Any aProp = xProp->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "URL" ) ) );
|
||||
aProp >>= aURL;
|
||||
}
|
||||
catch( UnknownPropertyException )
|
||||
catch(const UnknownPropertyException &)
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -398,7 +398,7 @@ void XPlugin_Impl::handleSpecialArgs()
|
||||
Any aProp = xProp->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "URL" ) ) );
|
||||
aProp >>= aURL;
|
||||
}
|
||||
catch( UnknownPropertyException )
|
||||
catch(const UnknownPropertyException &)
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -1037,7 +1037,7 @@ void PluginInputStream::load()
|
||||
);
|
||||
m_pContent->openStream( static_cast< XOutputStream* >( this ) );
|
||||
}
|
||||
catch( com::sun::star::uno::Exception )
|
||||
catch(const com::sun::star::uno::Exception &)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -277,7 +277,7 @@ namespace pcr
|
||||
aPropExtractor.invalidateItem(PROPERTY_FONT_RELIEF, CFID_RELIEF, *_pSet);
|
||||
aPropExtractor.invalidateItem(PROPERTY_FONT_EMPHASIS_MARK, CFID_EMPHASIS, *_pSet);
|
||||
}
|
||||
catch (Exception&)
|
||||
catch (const Exception&)
|
||||
{
|
||||
OSL_FAIL("ControlCharacterDialog::translatePropertiesToItems: caught an exception!");
|
||||
}
|
||||
|
@ -241,7 +241,7 @@ namespace pcr
|
||||
xRet = xStringResourceResolver;
|
||||
}
|
||||
}
|
||||
catch(UnknownPropertyException&)
|
||||
catch(const UnknownPropertyException&)
|
||||
{
|
||||
// nii
|
||||
}
|
||||
@ -301,7 +301,7 @@ namespace pcr
|
||||
pResolvedStrings[i] = aIdStr;
|
||||
}
|
||||
}
|
||||
catch( resource::MissingResourceException & )
|
||||
catch( const resource::MissingResourceException & )
|
||||
{}
|
||||
aPropertyValue <<= aResolvedStrings;
|
||||
}
|
||||
@ -451,7 +451,7 @@ namespace pcr
|
||||
}
|
||||
}
|
||||
}
|
||||
catch( resource::MissingResourceException & )
|
||||
catch( const resource::MissingResourceException & )
|
||||
{}
|
||||
|
||||
|
||||
@ -486,7 +486,7 @@ namespace pcr
|
||||
{
|
||||
xStringResourceManager->removeIdForLocale( aPureIdStr, aLocale );
|
||||
}
|
||||
catch( resource::MissingResourceException & )
|
||||
catch( const resource::MissingResourceException & )
|
||||
{}
|
||||
}
|
||||
}
|
||||
@ -1206,7 +1206,7 @@ namespace pcr
|
||||
pControl->SetDefaultValue( nDefault );
|
||||
}
|
||||
}
|
||||
catch (Exception&)
|
||||
catch (const Exception&)
|
||||
{
|
||||
// just ignore it
|
||||
}
|
||||
@ -1731,7 +1731,7 @@ namespace pcr
|
||||
{
|
||||
xControl = _rxInspectorUI->getPropertyControl( aAffectedProps[i] );
|
||||
}
|
||||
catch( const UnknownPropertyException& e ) { (void)e; }
|
||||
catch( const UnknownPropertyException& ) {}
|
||||
if ( xControl.is() )
|
||||
{
|
||||
OFormattedNumericControl* pControl = dynamic_cast< OFormattedNumericControl* >( xControl.get() );
|
||||
@ -1778,7 +1778,7 @@ namespace pcr
|
||||
{
|
||||
xControl = _rxInspectorUI->getPropertyControl( aFormattedPropertyControls[i] );
|
||||
}
|
||||
catch( const UnknownPropertyException& e ) { (void)e; }
|
||||
catch( const UnknownPropertyException& ) {}
|
||||
if ( xControl.is() )
|
||||
{
|
||||
OFormattedNumericControl* pControl = dynamic_cast< OFormattedNumericControl* >( xControl.get() );
|
||||
@ -2386,7 +2386,7 @@ namespace pcr
|
||||
_rFieldNames.push_back( *pFields );
|
||||
}
|
||||
}
|
||||
catch (Exception&)
|
||||
catch (const Exception&)
|
||||
{
|
||||
OSL_FAIL( "FormComponentPropertyHandler::impl_initFieldList_nothrow: caught an exception!" );
|
||||
}
|
||||
@ -2500,7 +2500,7 @@ namespace pcr
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception&)
|
||||
catch (const Exception&)
|
||||
{
|
||||
OSL_FAIL("FormComponentPropertyHandler::impl_describeCursorSource_nothrow: caught an exception !");
|
||||
}
|
||||
@ -2672,9 +2672,9 @@ namespace pcr
|
||||
if ( bSuccess )
|
||||
_out_rSelectedClause = _bFilter ? xComposer->getFilter() : xComposer->getOrder();
|
||||
}
|
||||
catch (SQLContext& e) { aErrorInfo = e; }
|
||||
catch (SQLWarning& e) { aErrorInfo = e; }
|
||||
catch (SQLException& e) { aErrorInfo = e; }
|
||||
catch (const SQLContext& e) { aErrorInfo = e; }
|
||||
catch (const SQLWarning& e) { aErrorInfo = e; }
|
||||
catch (const SQLException& e) { aErrorInfo = e; }
|
||||
catch( const Exception& )
|
||||
{
|
||||
OSL_FAIL( "FormComponentPropertyHandler::impl_dialogFilterOrSort_nothrow: caught an exception!" );
|
||||
|
@ -986,7 +986,7 @@ namespace pcr
|
||||
UpdateUI();
|
||||
}
|
||||
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OPropertyBrowserController::impl_rebindToInspectee_nothrow: caught an exception !");
|
||||
}
|
||||
@ -1117,7 +1117,7 @@ namespace pcr
|
||||
// be notified when one of our inspectees dies
|
||||
impl_toggleInspecteeListening_nothrow( true );
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OPropertyBrowserController::doInspection : caught an exception !");
|
||||
}
|
||||
@ -1367,7 +1367,7 @@ namespace pcr
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception&)
|
||||
catch (const Exception&)
|
||||
{
|
||||
DBG_UNHANDLED_EXCEPTION();
|
||||
}
|
||||
@ -1430,14 +1430,14 @@ namespace pcr
|
||||
// and display it again. This ensures proper formatting
|
||||
getPropertyBox().SetPropertyValue( rName, aNormalizedValue, false );
|
||||
}
|
||||
catch(PropertyVetoException& eVetoException)
|
||||
catch(const PropertyVetoException& eVetoException)
|
||||
{
|
||||
InfoBox(m_pView, eVetoException.Message).Execute();
|
||||
PropertyHandlerRef handler = impl_getHandlerForProperty_throw( rName );
|
||||
Any aNormalizedValue = handler->getPropertyValue( rName );
|
||||
getPropertyBox().SetPropertyValue( rName, aNormalizedValue, false );
|
||||
}
|
||||
catch(Exception&)
|
||||
catch(const Exception&)
|
||||
{
|
||||
OSL_FAIL("OPropertyBrowserController::Commit : caught an exception !");
|
||||
}
|
||||
|
@ -288,8 +288,8 @@ void SAL_CALL StringRepresentation::initialize(const uno::Sequence< uno::Any > &
|
||||
if ( !sReturn.getLength() )
|
||||
m_xTypeConverter->convertToSimpleType( _rValue, uno::TypeClass_STRING ) >>= sReturn;
|
||||
}
|
||||
catch( script::CannotConvertException& ) { }
|
||||
catch( lang::IllegalArgumentException& ) { }
|
||||
catch( const script::CannotConvertException& ) { }
|
||||
catch( const lang::IllegalArgumentException& ) { }
|
||||
}
|
||||
return sReturn;
|
||||
}
|
||||
@ -486,8 +486,8 @@ uno::Any StringRepresentation::convertStringToSimple( const ::rtl::OUString& _rV
|
||||
if ( !aReturn.hasValue() )
|
||||
aReturn = m_xTypeConverter->convertToSimpleType( makeAny( _rValue ), _ePropertyType );
|
||||
}
|
||||
catch( script::CannotConvertException& ) { }
|
||||
catch( lang::IllegalArgumentException& ) { }
|
||||
catch( const script::CannotConvertException& ) { }
|
||||
catch( const lang::IllegalArgumentException& ) { }
|
||||
}
|
||||
return aReturn;
|
||||
}
|
||||
|
@ -970,7 +970,7 @@ UpdateCheck::install()
|
||||
ShutdownThread *pShutdownThread = new ShutdownThread( m_xContext );
|
||||
(void) pShutdownThread;
|
||||
}
|
||||
} catch(uno::Exception&) {
|
||||
} catch(const uno::Exception&) {
|
||||
m_aUpdateHandler->setErrorMessage( m_aUpdateHandler->getDefaultInstErrMsg() );
|
||||
}
|
||||
}
|
||||
@ -1513,7 +1513,7 @@ UpdateCheck::showReleaseNote(const rtl::OUString& rURL) const
|
||||
|
||||
if( xShellExecute.is() )
|
||||
xShellExecute->execute(rURL, rtl::OUString(), c3s::SystemShellExecuteFlags::DEFAULTS);
|
||||
} catch(c3s::SystemShellExecuteException&) {
|
||||
} catch(const c3s::SystemShellExecuteException&) {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ checkForUpdates(
|
||||
try {
|
||||
xNodeList = xXPath->selectNodeList(xNode, aXPathExpression
|
||||
+ UNISTRING("/inst:update/attribute::src"));
|
||||
} catch (css::xml::xpath::XPathException &) {
|
||||
} catch (const css::xml::xpath::XPathException &) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
@ -200,7 +200,7 @@ checkForUpdates(
|
||||
try {
|
||||
xNode2 = xXPath->selectSingleNode(xNode, aXPathExpression
|
||||
+ UNISTRING("/inst:version/text()"));
|
||||
} catch (css::xml::xpath::XPathException &) {
|
||||
} catch (const css::xml::xpath::XPathException &) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
@ -210,7 +210,7 @@ checkForUpdates(
|
||||
try {
|
||||
xNode2 = xXPath->selectSingleNode(xNode, aXPathExpression
|
||||
+ UNISTRING("/inst:buildid/text()"));
|
||||
} catch (css::xml::xpath::XPathException &) {
|
||||
} catch (const css::xml::xpath::XPathException &) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
@ -223,7 +223,7 @@ checkForUpdates(
|
||||
try {
|
||||
xNodeList = xXPath->selectNodeList(xNode, aXPathExpression
|
||||
+ UNISTRING("/inst:relnote"));
|
||||
} catch (css::xml::xpath::XPathException &) {
|
||||
} catch (const css::xml::xpath::XPathException &) {
|
||||
// ignore
|
||||
}
|
||||
imax = xNodeList->getLength();
|
||||
|
@ -573,7 +573,7 @@ UpdateInformationProvider::getChildNode(const uno::Reference< xml::dom::XNode >&
|
||||
OSL_ASSERT(m_xXPathAPI.is());
|
||||
try {
|
||||
return m_xXPathAPI->selectSingleNode(rxNode, UNISTRING( "./atom:" ) + rName);
|
||||
} catch (xml::xpath::XPathException &) {
|
||||
} catch (const xml::xpath::XPathException &) {
|
||||
// ignore
|
||||
return 0;
|
||||
}
|
||||
@ -617,7 +617,7 @@ UpdateInformationProvider::getUpdateInformationEnumeration(
|
||||
try {
|
||||
xNodeList = m_xXPathAPI->selectNodeList(xDocument.get(),
|
||||
aXPathExpression);
|
||||
} catch (xml::xpath::XPathException &) {
|
||||
} catch (const xml::xpath::XPathException &) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
|
@ -349,7 +349,7 @@ Image UpdateCheckUI::GetBubbleImage( ::rtl::OUString &rURL )
|
||||
}
|
||||
}
|
||||
}
|
||||
catch( uno::Exception& )
|
||||
catch( const uno::Exception& )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user