summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fileaccess/source/FileAccess.cxx4
-rw-r--r--filter/source/config/cache/filterfactory.cxx2
-rw-r--r--filter/source/flash/swfexporter.cxx10
-rw-r--r--filter/source/graphicfilter/icgm/cgm.cxx2
-rw-r--r--filter/source/graphicfilter/itiff/itiff.cxx6
-rw-r--r--filter/source/msfilter/escherex.cxx10
-rw-r--r--filter/source/msfilter/eschesdo.cxx4
-rw-r--r--filter/source/msfilter/msdffimp.cxx6
-rw-r--r--filter/source/msfilter/msoleexp.cxx14
-rw-r--r--filter/source/msfilter/mstoolbar.cxx4
-rw-r--r--filter/source/msfilter/msvbahelper.cxx6
-rw-r--r--filter/source/msfilter/powerpoint/pptimporter.cxx2
-rw-r--r--filter/source/msfilter/svdfppt.cxx10
-rw-r--r--filter/source/odfflatxml/OdfFlatXml.cxx2
-rw-r--r--filter/source/pdf/impdialog.cxx4
-rw-r--r--filter/source/pdf/pdfexport.cxx4
-rw-r--r--filter/source/svg/test/svg2odf.cxx2
-rw-r--r--filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx8
-rw-r--r--filter/source/xmlfilterdetect/filterdetect.cxx2
-rw-r--r--filter/source/xsltdialog/typedetectionexport.cxx6
-rw-r--r--filter/source/xsltdialog/typedetectionimport.cxx2
-rw-r--r--filter/source/xsltdialog/xmlfileview.cxx2
-rw-r--r--filter/source/xsltdialog/xmlfilterjar.cxx10
-rw-r--r--filter/source/xsltdialog/xmlfiltersettingsdialog.cxx26
-rw-r--r--filter/source/xsltdialog/xmlfiltertabdialog.cxx4
-rw-r--r--filter/source/xsltdialog/xmlfiltertabpagexslt.cxx2
-rw-r--r--filter/source/xsltdialog/xmlfiltertestdialog.cxx16
-rw-r--r--filter/source/xsltfilter/XSLTFilter.cxx6
-rw-r--r--forms/source/component/CheckBox.cxx2
-rw-r--r--forms/source/component/ComboBox.cxx4
-rw-r--r--forms/source/component/Currency.cxx4
-rw-r--r--forms/source/component/Date.cxx4
-rw-r--r--forms/source/component/FormComponent.cxx4
-rw-r--r--forms/source/component/FormattedField.cxx8
-rw-r--r--forms/source/component/ImageControl.cxx2
-rw-r--r--forms/source/component/ListBox.cxx4
-rw-r--r--forms/source/component/Numeric.cxx2
-rw-r--r--forms/source/component/RadioButton.cxx2
-rw-r--r--forms/source/component/Time.cxx4
-rw-r--r--forms/source/misc/InterfaceContainer.cxx7
-rw-r--r--forms/source/runtime/formoperations.cxx2
-rw-r--r--forms/source/xforms/propertysetbase.cxx2
-rw-r--r--forms/source/xforms/submission/replace.cxx2
-rw-r--r--forms/source/xforms/submission/submission_get.cxx4
-rw-r--r--forms/source/xforms/submission/submission_post.cxx4
-rw-r--r--forms/source/xforms/submission/submission_put.cxx2
-rw-r--r--forms/source/xforms/xpathlib/xpathlib.cxx4
47 files changed, 121 insertions, 122 deletions
diff --git a/fileaccess/source/FileAccess.cxx b/fileaccess/source/FileAccess.cxx
index a19d90938c33..15867f8e24fa 100644
--- a/fileaccess/source/FileAccess.cxx
+++ b/fileaccess/source/FileAccess.cxx
@@ -396,7 +396,7 @@ sal_Bool OFileAccess::isFolder( const rtl::OUString& FileURL )
ucbhelper::Content aCnt( aURLObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment );
bRet = aCnt.isFolder();
}
- catch (Exception &) {}
+ catch (const Exception &) {}
return bRet;
}
@@ -600,7 +600,7 @@ sal_Bool OFileAccess::exists( const rtl::OUString& FileURL )
xStream->closeInput();
}
}
- catch (Exception &) {}
+ catch (const Exception &) {}
return bRet;
}
diff --git a/filter/source/config/cache/filterfactory.cxx b/filter/source/config/cache/filterfactory.cxx
index ec3254d599b7..f2b138e929ee 100644
--- a/filter/source/config/cache/filterfactory.cxx
+++ b/filter/source/config/cache/filterfactory.cxx
@@ -461,7 +461,7 @@ class stlcomp_removeIfMatchFlags
// We are asked for bRemove ! And bMatch = !bRemove => so bRemove = !bMatch .-)
return !bMatch;
}
- catch(css::container::NoSuchElementException)
+ catch(const css::container::NoSuchElementException &)
{
return true;
}
diff --git a/filter/source/flash/swfexporter.cxx b/filter/source/flash/swfexporter.cxx
index 80b7d698c763..18c6d8f821ee 100644
--- a/filter/source/flash/swfexporter.cxx
+++ b/filter/source/flash/swfexporter.cxx
@@ -161,7 +161,7 @@ sal_Bool FlashExporter::exportAll( Reference< XComponent > xDoc, Reference< XOut
delete mpWriter;
mpWriter = new Writer( nOutputWidth, nOutputHeight, mnDocWidth, mnDocHeight, mnJPEGcompressMode );
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_ASSERT( false );
return false; // no writer, no cookies
@@ -265,7 +265,7 @@ sal_Bool FlashExporter::exportSlides( Reference< XDrawPage > xDrawPage, Referenc
return sal_False;
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_ASSERT( false );
}
@@ -370,7 +370,7 @@ sal_Bool FlashExporter::exportSound( Reference< XOutputStream > &xOutputStream,
delete mpWriter;
mpWriter = new Writer( 0, 0, 0, 0 );
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_ASSERT( false );
}
@@ -564,7 +564,7 @@ void FlashExporter::exportShape( Reference< XShape >& xShape, bool bMaster )
return;
}
}
- catch( Exception& )
+ catch( const Exception& )
{
// TODO: If we are exporting a draw, this property is not available
}
@@ -642,7 +642,7 @@ void FlashExporter::exportShape( Reference< XShape >& xShape, bool bMaster )
delete pShapeInfo;
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_ASSERT(false);
}
diff --git a/filter/source/graphicfilter/icgm/cgm.cxx b/filter/source/graphicfilter/icgm/cgm.cxx
index 7308794e6a54..8023fa72a963 100644
--- a/filter/source/graphicfilter/icgm/cgm.cxx
+++ b/filter/source/graphicfilter/icgm/cgm.cxx
@@ -842,7 +842,7 @@ ImportCGM( String& rFileName, uno::Reference< frame::XModel > & rXModel, sal_uIn
}
}
}
- catch( ::com::sun::star::uno::Exception& )
+ catch( const ::com::sun::star::uno::Exception& )
{
nStatus = 0;
}
diff --git a/filter/source/graphicfilter/itiff/itiff.cxx b/filter/source/graphicfilter/itiff/itiff.cxx
index 155b1342ce37..7f7023fc2652 100644
--- a/filter/source/graphicfilter/itiff/itiff.cxx
+++ b/filter/source/graphicfilter/itiff/itiff.cxx
@@ -354,7 +354,7 @@ void TIFFReader::ReadTagData( sal_uInt16 nTagType, sal_uInt32 nDataLen)
{
pStripOffsets = new sal_uLong[ nNumStripOffsets ];
}
- catch (std::bad_alloc)
+ catch (const std::bad_alloc &)
{
pStripOffsets = NULL;
nNumStripOffsets = 0;
@@ -400,7 +400,7 @@ void TIFFReader::ReadTagData( sal_uInt16 nTagType, sal_uInt32 nDataLen)
{
pStripByteCounts = new sal_uLong[ nNumStripByteCounts ];
}
- catch (std::bad_alloc)
+ catch (const std::bad_alloc &)
{
pStripByteCounts = NULL;
nNumStripByteCounts = 0;
@@ -1298,7 +1298,7 @@ sal_Bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic )
{
pMap[ j ] = new sal_uInt8[ nBytesPerRow ];
}
- catch (std::bad_alloc)
+ catch (const std::bad_alloc &)
{
pMap[ j ] = NULL;
bStatus = sal_False;
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 0bad56292aca..10f17706357d 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -2058,7 +2058,7 @@ void ConvertEnhancedCustomShapeEquation( SdrObjCustomShape* pCustoShape,
rEquations.push_back( aEquation );
}
}
- catch ( EnhancedCustomShape::ParseError& )
+ catch ( const EnhancedCustomShape::ParseError& )
{
EnhancedCustomShapeEquation aEquation; // ups, we should not be here,
aEquation.nOperation = 0; // creating a default equation with value 1
@@ -3277,7 +3277,7 @@ MSO_SPT EscherPropertyContainer::GetCustomShapeType( const uno::Reference< drawi
}
}
}
- catch( ::com::sun::star::uno::Exception& )
+ catch( const ::com::sun::star::uno::Exception& )
{
}
}
@@ -3386,7 +3386,7 @@ sal_Bool EscherPropertyValueHelper::GetPropertyValue(
if ( aXPropSetInfo.is() )
bRetValue = aXPropSetInfo->hasPropertyByName( rString );
}
- catch( ::com::sun::star::uno::Exception& )
+ catch( const ::com::sun::star::uno::Exception& )
{
bRetValue = sal_False;
}
@@ -3399,7 +3399,7 @@ sal_Bool EscherPropertyValueHelper::GetPropertyValue(
if ( !rAny.hasValue() )
bRetValue = sal_False;
}
- catch( ::com::sun::star::uno::Exception& )
+ catch( const ::com::sun::star::uno::Exception& )
{
bRetValue = sal_False;
}
@@ -3419,7 +3419,7 @@ sal_Bool EscherPropertyValueHelper::GetPropertyValue(
if ( aXPropState.is() )
eRetValue = aXPropState->getPropertyState( rPropertyName );
}
- catch( ::com::sun::star::uno::Exception& )
+ catch( const ::com::sun::star::uno::Exception& )
{
}
return eRetValue;
diff --git a/filter/source/msfilter/eschesdo.cxx b/filter/source/msfilter/eschesdo.cxx
index 0180e37b2875..438a72d44afe 100644
--- a/filter/source/msfilter/eschesdo.cxx
+++ b/filter/source/msfilter/eschesdo.cxx
@@ -1066,7 +1066,7 @@ sal_Bool ImplEESdrObject::ImplGetPropertyValue( const sal_Unicode* rString )
if( mAny.hasValue() )
bRetValue = sal_True;
}
- catch( ::com::sun::star::uno::Exception& )
+ catch( const ::com::sun::star::uno::Exception& )
{
bRetValue = sal_False;
}
@@ -1087,7 +1087,7 @@ sal_Bool ImplEESdrObject::ImplGetPropertyValue( const Reference< XPropertySet >&
if( 0 != mAny.get() )
bRetValue = sal_True;
}
- catch( ::com::sun::star::uno::Exception& )
+ catch( const ::com::sun::star::uno::Exception& )
{
bRetValue = sal_False;
}
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 6853c139ebd2..e9d177b0a79f 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -7554,7 +7554,7 @@ SdrOle2Obj* SvxMSDffManager::CreateSdrOLEFromStorage(
xObj->setVisualAreaSize( nAspect, aAwtSz );
//xInplaceObj->EnableSetModified( sal_True );*/
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
OSL_FAIL( "Could not set visual area of the object!\n" );
}
@@ -7601,7 +7601,7 @@ sal_Bool SvxMSDffManager::SetPropValue( const uno::Any& rAny, const uno::Referen
if ( aXPropSetInfo.is() )
bRetValue = aXPropSetInfo->hasPropertyByName( rPropName );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
bRetValue = sal_False;
}
@@ -7613,7 +7613,7 @@ sal_Bool SvxMSDffManager::SetPropValue( const uno::Any& rAny, const uno::Referen
rXPropSet->setPropertyValue( rPropName, rAny );
bRetValue = sal_True;
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
bRetValue = sal_False;
}
diff --git a/filter/source/msfilter/msoleexp.cxx b/filter/source/msfilter/msoleexp.cxx
index e69ae3be3d3b..9915f1420139 100644
--- a/filter/source/msfilter/msoleexp.cxx
+++ b/filter/source/msfilter/msoleexp.cxx
@@ -117,7 +117,7 @@ sal_Bool UseOldMSExport()
return bResult;
}
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}
@@ -215,13 +215,13 @@ void SvxMSExportOLEObjects::ExportOLEObject( svt::EmbeddedObjectRef& rObj, SvSto
{
xStor->storeToURL( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:stream" )), aSeq );
}
- catch( uno::Exception& ) {} // #TODO really handle exceptions - interactionalhandler etc. ?
+ catch( const uno::Exception& ) {} // #TODO really handle exceptions - interactionalhandler etc. ?
SotStorageRef xOLEStor = new SotStorage( pStream, sal_True );
xOLEStor->CopyTo( &rDestStg );
rDestStg.Commit();
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
// TODO/LATER: Error handling
OSL_FAIL( "The object could not be exported!" );
@@ -257,13 +257,13 @@ void SvxMSExportOLEObjects::ExportOLEObject( svt::EmbeddedObjectRef& rObj, SvSto
// extension stream
aSize = rObj->getVisualAreaSize( embed::Aspects::MSOLE_CONTENT );
}
- catch( embed::NoVisualAreaSizeException& )
+ catch( const embed::NoVisualAreaSizeException& )
{
OSL_FAIL( "Could not get visual area size!\n" );
aSize.Width = 5000;
aSize.Height = 5000;
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
OSL_FAIL( "Unexpected exception while getting visual area size!\n" );
aSize.Width = 5000;
@@ -311,7 +311,7 @@ void SvxMSExportOLEObjects::ExportOLEObject( svt::EmbeddedObjectRef& rObj, SvSto
uno::Reference < frame::XStorable > xStor( rObj->getComponent(), uno::UNO_QUERY );
xStor->storeToURL( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:stream" )), aSeq );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
// TODO/LATER: Error handling
OSL_FAIL( "The object could not be exported!" );
@@ -339,7 +339,7 @@ void SvxMSExportOLEObjects::ExportOLEObject( svt::EmbeddedObjectRef& rObj, SvSto
{
xPers->storeToEntry( xStor, aTempName, aEmptySeq, aEmptySeq );
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{}
SotStorageRef xOLEStor = SotStorage::OpenOLEStorage( xStor, aTempName, STREAM_STD_READ );
diff --git a/filter/source/msfilter/mstoolbar.cxx b/filter/source/msfilter/mstoolbar.cxx
index 83e4dd44fe4a..2776e724d1f5 100644
--- a/filter/source/msfilter/mstoolbar.cxx
+++ b/filter/source/msfilter/mstoolbar.cxx
@@ -61,7 +61,7 @@ void CustomToolBarImportHelper::showToolbar( const rtl::OUString& rName )
uno::Reference< frame::XLayoutManager > xLayoutMgr( xProps->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("LayoutManager") ) ), uno::UNO_QUERY_THROW );
xLayoutMgr->showElement( rName );
}
- catch( uno::Exception& ) {}
+ catch( const uno::Exception& ) {}
}
void CustomToolBarImportHelper::ScaleImage( uno::Reference< graphic::XGraphic >& xGraphic, long nNewSize )
@@ -192,7 +192,7 @@ CustomToolBarImportHelper::createMenu( const rtl::OUString& rName, const uno::Re
}
}
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
bRes = false;
}
diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx
index ca0288fb6364..ca7f34d22c76 100644
--- a/filter/source/msfilter/msvbahelper.cxx
+++ b/filter/source/msfilter/msvbahelper.cxx
@@ -323,7 +323,7 @@ MacroResolvedInfo resolveVBAMacro( SfxObjectShell* pShell, const rtl::OUString&
{
xPrjNameCache.set( xSF->createInstance( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "ooo.vba.VBAProjectNameProvider" ) ) ), uno::UNO_QUERY );
}
- catch( uno::Exception& ) // createInstance may throw
+ catch( const uno::Exception& ) // createInstance may throw
{
}
#endif
@@ -358,7 +358,7 @@ MacroResolvedInfo resolveVBAMacro( SfxObjectShell* pShell, const rtl::OUString&
uno::Reference< script::vba::XVBACompatibility > xVBAMode( xProps->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("BasicLibraries") ) ), uno::UNO_QUERY_THROW );
sThisProject = xVBAMode->getProjectName();
}
- catch( uno::Exception& /*e*/) {}
+ catch( const uno::Exception& /*e*/) {}
sSearchList.push_back( sThisProject ); // First Lib to search
@@ -465,7 +465,7 @@ sal_Bool executeMacro( SfxObjectShell* pShell, const String& sMacroName, uno::Se
}
bRes = ( nErr == ERRCODE_NONE );
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{
bRes = sal_False;
}
diff --git a/filter/source/msfilter/powerpoint/pptimporter.cxx b/filter/source/msfilter/powerpoint/pptimporter.cxx
index 23760b68d8cd..713e1d32ff1e 100644
--- a/filter/source/msfilter/powerpoint/pptimporter.cxx
+++ b/filter/source/msfilter/powerpoint/pptimporter.cxx
@@ -67,7 +67,7 @@ PptImporter::PptImporter( const REF( NMSP_LANG::XMultiServiceFactory )& rxMgr )
xHdl = REF( NMSP_SAX::XDocumentHandler ) ( xFact->createInstance( sService ), NMSP_UNO::UNO_QUERY );
xImporter = REF( NMSP_DOCUMENT::XImporter )( xHdl, NMSP_UNO::UNO_QUERY );
}
- catch( NMSP_UNO::Exception & )
+ catch( const NMSP_UNO::Exception & )
{
}
}
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 0cd57668c263..5e5726661284 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -2719,7 +2719,7 @@ void ImportComment10( SvxMSDffManager& rMan, SvStream& rStCtrl, SdrPage* pPage,
uno::Reference< text::XText > xText( xAnnotation->getTextRange() );
xText->setString( sText );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}
@@ -7206,7 +7206,7 @@ void MergeCells( const Reference< XTable >& xTable, sal_Int32 nCol, sal_Int32 nR
if( xRange->isMergeable() )
xRange->merge();
}
- catch( Exception& )
+ catch( const Exception& )
{
DBG_ASSERT( false, "exception caught!" );
}
@@ -7311,7 +7311,7 @@ void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell )
}
}
}
- catch( Exception& )
+ catch( const Exception& )
{
}
}
@@ -7376,7 +7376,7 @@ void ApplyCellLineAttributes( const SdrObject* pLine, Reference< XTable >& xTabl
++aIter;
}
}
- catch( Exception& )
+ catch( const Exception& )
{
}
}
@@ -7516,7 +7516,7 @@ SdrObject* SdrPowerPointImport::CreateTable( SdrObject* pGroup, sal_uInt32* pTab
SdrObject::Free( pGroup );
}
- catch( Exception& )
+ catch( const Exception& )
{
pTable->uno_unlock();
SdrObject* pObj = pTable;
diff --git a/filter/source/odfflatxml/OdfFlatXml.cxx b/filter/source/odfflatxml/OdfFlatXml.cxx
index b7674df13e29..87714e9f7552 100644
--- a/filter/source/odfflatxml/OdfFlatXml.cxx
+++ b/filter/source/odfflatxml/OdfFlatXml.cxx
@@ -159,7 +159,7 @@ OdfFlatXml::importer(
{
saxParser->parseStream(inputSource);
}
- catch (Exception &exc)
+ catch (const Exception &exc)
{
OString msg = OUStringToOString(exc.Message,
RTL_TEXTENCODING_ASCII_US);
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index 25dbbd116e2c..21f4424822f4 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -137,7 +137,7 @@ ImpPDFTabDialog::ImpPDFTabDialog( Window* pParent,
xView->getSelection() >>= maSelection;
}
}
- catch( RuntimeException )
+ catch(const RuntimeException &)
{
}
mbSelectionPresent = maSelection.hasValue();
@@ -175,7 +175,7 @@ ImpPDFTabDialog::ImpPDFTabDialog( Window* pParent,
mbIsWriter = sal_True;
}
}
- catch( RuntimeException )
+ catch(const RuntimeException &)
{
}
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index cd5289907061..f023f04e463b 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -263,7 +263,7 @@ sal_Bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter,
}
}
}
- catch( RuntimeException )
+ catch(const RuntimeException &)
{
}
return bRet;
@@ -307,7 +307,7 @@ void PDFExportStreamDoc::write( const Reference< XOutputStream >& xStream )
xStore->storeToURL( OUString( RTL_CONSTASCII_USTRINGPARAM( "private:stream" ) ),
aArgs );
}
- catch( IOException& )
+ catch( const IOException& )
{
}
}
diff --git a/filter/source/svg/test/svg2odf.cxx b/filter/source/svg/test/svg2odf.cxx
index 78d300e39076..438143eac11b 100644
--- a/filter/source/svg/test/svg2odf.cxx
+++ b/filter/source/svg/test/svg2odf.cxx
@@ -98,7 +98,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if( xFactory.is() )
::comphelper::setProcessServiceFactory( xFactory );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}
diff --git a/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx b/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx
index 256b040e258b..78fcd893dfd9 100644
--- a/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx
+++ b/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx
@@ -198,9 +198,9 @@ sal_Bool SAL_CALL XmlFilterAdaptor::importImpl( const Sequence< ::com::sun::star
}
}
#if OSL_DEBUG_LEVEL > 0
- catch( Exception& e )
+ catch( const Exception& e )
#else
- catch( Exception& )
+ catch( const Exception& )
#endif
{
if (xStatusIndicator.is())
@@ -320,9 +320,9 @@ sal_Bool SAL_CALL XmlFilterAdaptor::exportImpl( const Sequence< ::com::sun::star
}
}
#if OSL_DEBUG_LEVEL > 0
- catch( Exception& exE )
+ catch( const Exception& exE )
#else
- catch( Exception& )
+ catch( const Exception& )
#endif
{
OSL_FAIL( ::rtl::OUStringToOString( exE.Message, RTL_TEXTENCODING_ASCII_US).getStr());
diff --git a/filter/source/xmlfilterdetect/filterdetect.cxx b/filter/source/xmlfilterdetect/filterdetect.cxx
index 6675a2a5cdc9..cb68f5747257 100644
--- a/filter/source/xmlfilterdetect/filterdetect.cxx
+++ b/filter/source/xmlfilterdetect/filterdetect.cxx
@@ -217,7 +217,7 @@ bool isXMLStream(const ::rtl::OString& aHeaderStrm)
i++;
}
}
- catch (Exception &)
+ catch (const Exception &)
{
OSL_FAIL( "An Exception occurred while opening File stream" );
}
diff --git a/filter/source/xsltdialog/typedetectionexport.cxx b/filter/source/xsltdialog/typedetectionexport.cxx
index 0994197aad0b..d373fe4898be 100644
--- a/filter/source/xsltdialog/typedetectionexport.cxx
+++ b/filter/source/xsltdialog/typedetectionexport.cxx
@@ -226,7 +226,7 @@ void TypeDetectionExporter::doExport( Reference< XOutputStream > xOS, const XML
xHandler->endElement( sComponentData );
xHandler->endDocument();
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "TypeDetectionExporter::doExport exception catched!" );
}
@@ -256,7 +256,7 @@ void TypeDetectionExporter::addProperty( Reference< XDocumentHandler > xHandler,
xHandler->ignorableWhitespace ( sWhiteSpace );
xHandler->endElement( sProp );
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "TypeDetectionExporter::addProperty exception catched!" );
}
@@ -287,7 +287,7 @@ void TypeDetectionExporter::addLocaleProperty( Reference< XDocumentHandler > xHa
xHandler->ignorableWhitespace ( sWhiteSpace );
xHandler->endElement( sProp );
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "TypeDetectionExporter::addLocaleProperty exception catched!" );
}
diff --git a/filter/source/xsltdialog/typedetectionimport.cxx b/filter/source/xsltdialog/typedetectionimport.cxx
index 4d4675e60f53..b370414dd1cd 100644
--- a/filter/source/xsltdialog/typedetectionimport.cxx
+++ b/filter/source/xsltdialog/typedetectionimport.cxx
@@ -87,7 +87,7 @@ void TypeDetectionImporter::doImport( Reference< XMultiServiceFactory >& xMSF, R
pImporter->fillFilterVector( rFilters );
}
}
- catch( Exception& /* e */ )
+ catch( const Exception& /* e */ )
{
OSL_FAIL( "TypeDetectionImporter::doImport exception catched!" );
}
diff --git a/filter/source/xsltdialog/xmlfileview.cxx b/filter/source/xsltdialog/xmlfileview.cxx
index 206af57dd49f..899a0a8b9c74 100644
--- a/filter/source/xsltdialog/xmlfileview.cxx
+++ b/filter/source/xsltdialog/xmlfileview.cxx
@@ -630,7 +630,7 @@ void XMLSourceFileDialog::onValidate()
xImporter->importer( aSourceData, xWriter, aFilterUserData );
}
}
- catch(Exception& e)
+ catch(const Exception& e)
{
String sErr( e.Message );
sal_uInt16 nEntry = maLBOutput.InsertEntry( sErr );
diff --git a/filter/source/xsltdialog/xmlfilterjar.cxx b/filter/source/xsltdialog/xmlfilterjar.cxx
index c95ab3bc5639..8c4863aa032e 100644
--- a/filter/source/xsltdialog/xmlfilterjar.cxx
+++ b/filter/source/xsltdialog/xmlfilterjar.cxx
@@ -90,7 +90,7 @@ XMLFilterJarHelper::XMLFilterJarHelper( Reference< XMultiServiceFactory >& xMSF
sTemplatePath = xCfgMgr->substituteVariables( sTemplatePath );
}
}
- catch(Exception&)
+ catch(const Exception&)
{
}
}
@@ -219,7 +219,7 @@ bool XMLFilterJarHelper::savePackage( const OUString& rPackageURL, const XMLFilt
if( pFilter->maImportXSLT.getLength() )
addFile( xFilterRoot, xFactory, pFilter->maImportXSLT );
}
- catch( com::sun::star::container::ElementExistException&)
+ catch(const com::sun::star::container::ElementExistException&)
{
// in case of same named import / export XSLT the latter
// is ignored
@@ -258,7 +258,7 @@ bool XMLFilterJarHelper::savePackage( const OUString& rPackageURL, const XMLFilt
return true;
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterJarHelper::savePackage exception catched!" );
}
@@ -334,7 +334,7 @@ void XMLFilterJarHelper::openPackage( const OUString& rPackageURL, XMLFilterVect
}
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterJarHelper::savePackage exception catched!" );
}
@@ -408,7 +408,7 @@ bool XMLFilterJarHelper::copyFile( Reference< XHierarchicalNameAccess > xIfc, OU
}
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterJarHelper::copyFile exception catched" );
}
diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
index 29e04abd2153..306fe595dee8 100644
--- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
@@ -114,7 +114,7 @@ XMLFilterSettingsDialog::XMLFilterSettingsDialog( Window* pParent, ResMgr& rResM
sTemplatePath = xCfgMgr->substituteVariables( sTemplatePath );
}
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL( "XMLFilterSettingsDialog::XMLFilterSettingsDialog exception catched!" );
}
@@ -432,7 +432,7 @@ OUString XMLFilterSettingsDialog::createUniqueInterfaceName( const OUString& rIn
}
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterSettingsDialog::createUniqueInterfaceName exception catched!" );
}
@@ -477,7 +477,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
if( pOldInfo->maType != pNewInfo->maType )
mxTypeDetection->removeByName( pOldInfo->maType );
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" );
bOk = false;
@@ -599,7 +599,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
mxFilterContainer->insertByName( pFilterEntry->maFilterName, aAny );
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" );
bOk = false;
@@ -662,7 +662,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
mxTypeDetection->insertByName( pFilterEntry->maType, aAny );
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" );
bOk = false;
@@ -677,7 +677,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
if( xFlushable.is() )
xFlushable->flush();
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" );
bOk = false;
@@ -691,7 +691,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
{
mxFilterContainer->removeByName( pFilterEntry->maFilterName );
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" );
bOk = false;
@@ -707,7 +707,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
if( xFlushable.is() )
xFlushable->flush();
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" );
bOk = false;
@@ -720,7 +720,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
{
mxTypeDetection->removeByName( pFilterEntry->maType );
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" );
}
@@ -897,7 +897,7 @@ void XMLFilterSettingsDialog::onDelete()
delete pInfo;
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterSettingsDialog::onDelete exception catched!" );
}
@@ -1239,7 +1239,7 @@ void XMLFilterSettingsDialog::initFilterList()
}
}
}
- catch( ::com::sun::star::container::NoSuchElementException& )
+ catch( const ::com::sun::star::container::NoSuchElementException& )
{
OSL_FAIL( "Type not found, user error?" ); // TODO: error?
}
@@ -1252,7 +1252,7 @@ void XMLFilterSettingsDialog::initFilterList()
pTempFilter = new filter_info_impl;
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterSettingsDialog::initFilterList exception catched!" );
}
@@ -1768,7 +1768,7 @@ bool copyStreams( Reference< XInputStream > xIS, Reference< XOutputStream > xOS
return true;
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL( "copyStreams() exception catched!" );
}
diff --git a/filter/source/xsltdialog/xmlfiltertabdialog.cxx b/filter/source/xsltdialog/xmlfiltertabdialog.cxx
index d025ce07dc17..8b046f93706d 100644
--- a/filter/source/xsltdialog/xmlfiltertabdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltertabdialog.cxx
@@ -158,7 +158,7 @@ bool XMLFilterTabDialog::onOk()
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterTabDialog::onOk exception catched!" );
}
@@ -216,7 +216,7 @@ bool XMLFilterTabDialog::onOk()
}
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterTabDialog::onOk exception catched!" );
}
diff --git a/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx b/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx
index 04a807b4bead..9399fd2c7b56 100644
--- a/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx
+++ b/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx
@@ -83,7 +83,7 @@ XMLFilterTabPageXSLT::XMLFilterTabPageXSLT( Window* pParent, ResMgr& rResMgr, co
if( xCfgMgr.is() )
sInstPath = xCfgMgr->substituteVariables( sInstPath );
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL( "XMLFilterTabPageXSLT::XMLFilterTabPageXSLT exception catched!" );
}
diff --git a/filter/source/xsltdialog/xmlfiltertestdialog.cxx b/filter/source/xsltdialog/xmlfiltertestdialog.cxx
index bffa4ba7d752..33b6b28a3569 100644
--- a/filter/source/xsltdialog/xmlfiltertestdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltertestdialog.cxx
@@ -132,7 +132,7 @@ static bool checkComponent( Reference< XComponent >& rxComponent, const OUString
}
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "checkComponent exception catched!" );
}
@@ -191,7 +191,7 @@ XMLFilterTestDialog::XMLFilterTestDialog( Window* pParent, ResMgr& rResMgr, cons
mxGlobalBroadcaster->addEventListener( mxGlobalEventListener );
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterTestDialog::XMLFilterTestDialog exception catched!" );
}
@@ -204,7 +204,7 @@ XMLFilterTestDialog::~XMLFilterTestDialog()
if( mxGlobalBroadcaster.is() )
mxGlobalBroadcaster->removeEventListener( mxGlobalEventListener );
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterTestDialog::~XMLFilterTestDialog exception catched!" );
}
@@ -449,7 +449,7 @@ void XMLFilterTestDialog::onExportBrowse()
}
}
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL("XMLFilterTestDialog::onExportBrowse exception caught!");
}
@@ -523,7 +523,7 @@ void XMLFilterTestDialog::doExport( Reference< XComponent > xComp )
xGrfResolver = Reference< XGraphicObjectResolver >::query( xDocFac->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.ExportGraphicObjectResolver" )) ) );
xObjectResolver = Reference< XEmbeddedObjectResolver >::query( xDocFac->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.ExportEmbeddedObjectResolver" )) ) );
}
- catch( Exception& )
+ catch( const Exception& )
{
}
}
@@ -556,7 +556,7 @@ void XMLFilterTestDialog::doExport( Reference< XComponent > xComp )
}
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterTestDialog::doExport exception catched!" );
}
@@ -689,7 +689,7 @@ void XMLFilterTestDialog::import( const OUString& rURL )
displayXMLFile( aTempFileURL );
}
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL("XMLFilterTestDialog::import catched an exception" );
}
@@ -769,7 +769,7 @@ Reference< XComponent > XMLFilterTestDialog::getFrontMostDocument( const OUStrin
}
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "XMLFilterTestDialog::getFrontMostDocument exception catched!" );
}
diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx
index c1fd601ac935..e272ecdab4bc 100644
--- a/filter/source/xsltfilter/XSLTFilter.cxx
+++ b/filter/source/xsltfilter/XSLTFilter.cxx
@@ -203,7 +203,7 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False)
if (nPos != -1)
sExpandedUrl = sExpandedUrl.copy(nPos + 20);
}
- catch (Exception&)
+ catch (const Exception&)
{
}
return sExpandedUrl;
@@ -401,9 +401,9 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False)
return !m_bError;
}
#if OSL_DEBUG_LEVEL > 0
- catch( Exception& exc)
+ catch( const Exception& exc)
#else
- catch (Exception&)
+ catch (const Exception&)
#endif
{
// something went wrong
diff --git a/forms/source/component/CheckBox.cxx b/forms/source/component/CheckBox.cxx
index 989a4cbd9870..b0dd35f947d4 100644
--- a/forms/source/component/CheckBox.cxx
+++ b/forms/source/component/CheckBox.cxx
@@ -258,7 +258,7 @@ sal_Bool OCheckBoxModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
OSL_FAIL("OCheckBoxModel::commitControlValueToDbColumn: invalid value !");
}
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL("OCheckBoxModel::commitControlValueToDbColumn: could not commit !");
}
diff --git a/forms/source/component/ComboBox.cxx b/forms/source/component/ComboBox.cxx
index eadf1a8fc3f9..6224c5b6f831 100644
--- a/forms/source/component/ComboBox.cxx
+++ b/forms/source/component/ComboBox.cxx
@@ -598,7 +598,7 @@ void OComboBoxModel::loadData( bool _bForce )
xListCursor.reset( m_aListRowSet.execute() );
}
}
- catch(SQLException& eSQL)
+ catch(const SQLException& eSQL)
{
onError(eSQL, FRM_RES_STRING(RID_BASELISTBOX_ERROR_FILLLIST));
return;
@@ -670,7 +670,7 @@ void OComboBoxModel::loadData( bool _bForce )
break;
}
}
- catch(SQLException& eSQL)
+ catch(const SQLException& eSQL)
{
onError(eSQL, FRM_RES_STRING(RID_BASELISTBOX_ERROR_FILLLIST));
return;
diff --git a/forms/source/component/Currency.cxx b/forms/source/component/Currency.cxx
index 6589564e9a09..180c98556abe 100644
--- a/forms/source/component/Currency.cxx
+++ b/forms/source/component/Currency.cxx
@@ -133,7 +133,7 @@ void OCurrencyModel::implConstruct()
m_xAggregateSet->setPropertyValue(PROPERTY_CURRSYM_POSITION, makeAny(bPrependCurrencySymbol));
}
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL( "OCurrencyModel::implConstruct: caught an exception while initializing the aggregate!" );
}
@@ -224,7 +224,7 @@ sal_Bool OCurrencyModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
{
m_xColumnUpdate->updateDouble( getDouble( aControlValue ) );
}
- catch(Exception&)
+ catch(const Exception&)
{
return sal_False;
}
diff --git a/forms/source/component/Date.cxx b/forms/source/component/Date.cxx
index 5230c738a718..bdbaefa2148a 100644
--- a/forms/source/component/Date.cxx
+++ b/forms/source/component/Date.cxx
@@ -236,7 +236,7 @@ void ODateModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm )
xField->getPropertyValue(PROPERTY_FIELDTYPE) >>= nFieldType;
m_bDateTimeField = (nFieldType == DataType::TIMESTAMP);
}
- catch(Exception&)
+ catch(const Exception&)
{
}
}
@@ -273,7 +273,7 @@ sal_Bool ODateModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
m_xColumnUpdate->updateTimestamp( aDateTime );
}
}
- catch(Exception&)
+ catch(const Exception&)
{
return sal_False;
}
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index 86effb27a13c..3c3e13b00c9e 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -2068,7 +2068,7 @@ sal_Bool SAL_CALL OBoundControlModel::commit() throw(RuntimeException)
if ( m_xColumnUpdate.is() )
bSuccess = commitControlValueToDbColumn( sal_False );
}
- catch(Exception&)
+ catch(const Exception&)
{
bSuccess = sal_False;
}
@@ -2527,7 +2527,7 @@ void OBoundControlModel::reset() throw (RuntimeException)
bIsNull = m_xColumn->wasNull();
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL("OBoundControlModel::reset: this should have succeeded in all cases!");
}
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx
index 392c24aa82a1..5a572cb1041d 100644
--- a/forms/source/component/FormattedField.cxx
+++ b/forms/source/component/FormattedField.cxx
@@ -589,7 +589,7 @@ void OFormattedModel::_propertyChanged( const com::sun::star::beans::PropertyCha
calculateExternalValueType();
}
}
- catch(Exception&)
+ catch(const Exception&)
{
}
}
@@ -888,7 +888,7 @@ void OFormattedModel::write(const Reference<XObjectOutputStream>& _rxOutStream)
Any aEffectiveValue;
if (m_xAggregateSet.is())
{
- try { aEffectiveValue = m_xAggregateSet->getPropertyValue(PROPERTY_EFFECTIVE_VALUE); } catch(Exception&) { }
+ try { aEffectiveValue = m_xAggregateSet->getPropertyValue(PROPERTY_EFFECTIVE_VALUE); } catch(const Exception&) { }
}
{
@@ -987,7 +987,7 @@ void OFormattedModel::read(const Reference<XObjectInputStream>& _rxInStream) thr
{
m_xAggregateSet->setPropertyValue(PROPERTY_EFFECTIVE_VALUE, aEffectiveValue);
}
- catch(Exception&)
+ catch(const Exception&)
{
}
}
@@ -1049,7 +1049,7 @@ sal_Bool OFormattedModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
m_xColumnUpdate->updateString( getString( aControlValue ) );
}
}
- catch(Exception&)
+ catch(const Exception&)
{
return sal_False;
}
diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx
index 94ffd29b540c..611527690671 100644
--- a/forms/source/component/ImageControl.cxx
+++ b/forms/source/component/ImageControl.cxx
@@ -871,7 +871,7 @@ bool OImageControlControl::implInsertGraphics()
return true;
}
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL("OImageControlControl::implInsertGraphics: caught an exception while attempting to execute the FilePicker!");
}
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index d982e50576fd..c0b00a1bd49b 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -796,7 +796,7 @@ namespace frm
xListCursor.reset( m_aListRowSet.execute() );
}
}
- catch(SQLException& eSQL)
+ catch(const SQLException& eSQL)
{
onError(eSQL, FRM_RES_STRING(RID_BASELISTBOX_ERROR_FILLLIST));
return;
@@ -902,7 +902,7 @@ namespace frm
break;
}
}
- catch(SQLException& eSQL)
+ catch(const SQLException& eSQL)
{
onError(eSQL, FRM_RES_STRING(RID_BASELISTBOX_ERROR_FILLLIST));
return;
diff --git a/forms/source/component/Numeric.cxx b/forms/source/component/Numeric.cxx
index d96a2a8907aa..7fa0bf8e17f9 100644
--- a/forms/source/component/Numeric.cxx
+++ b/forms/source/component/Numeric.cxx
@@ -178,7 +178,7 @@ sal_Bool ONumericModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
{
m_xColumnUpdate->updateDouble( getDouble( aControlValue ) );
}
- catch(Exception&)
+ catch(const Exception&)
{
return sal_False;
}
diff --git a/forms/source/component/RadioButton.cxx b/forms/source/component/RadioButton.cxx
index 1862168e8348..77c0ee6a1c05 100644
--- a/forms/source/component/RadioButton.cxx
+++ b/forms/source/component/RadioButton.cxx
@@ -421,7 +421,7 @@ sal_Bool ORadioButtonModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
if ( nValue == 1 )
xField->setPropertyValue( PROPERTY_VALUE, makeAny( getReferenceValue() ) );
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL("ORadioButtonModel::commitControlValueToDbColumn: could not commit !");
}
diff --git a/forms/source/component/Time.cxx b/forms/source/component/Time.cxx
index 400fac803dd5..11865d422f0b 100644
--- a/forms/source/component/Time.cxx
+++ b/forms/source/component/Time.cxx
@@ -233,7 +233,7 @@ void OTimeModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm )
xField->getPropertyValue(PROPERTY_FIELDTYPE) >>= nFieldType;
m_bDateTimeField = (nFieldType == DataType::TIMESTAMP);
}
- catch(Exception&)
+ catch(const Exception&)
{
}
}
@@ -271,7 +271,7 @@ sal_Bool OTimeModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
m_xColumnUpdate->updateTimestamp(aDateTime);
}
}
- catch(Exception&)
+ catch(const Exception&)
{
return sal_False;
}
diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx
index 5015e8f620a0..0459c3014d54 100644
--- a/forms/source/misc/InterfaceContainer.cxx
+++ b/forms/source/misc/InterfaceContainer.cxx
@@ -541,7 +541,7 @@ namespace
xObjProps->setPropertyValue( PROPERTY_NAME, makeAny( FRM_RES_STRING( RID_STR_CONTROL_SUBSTITUTED_NAME ) ) );
xObjProps->setPropertyValue( PROPERTY_TAG, makeAny( FRM_RES_STRING( RID_STR_CONTROL_SUBSTITUTED_EPXPLAIN ) ) );
}
- catch(Exception&)
+ catch(const Exception&)
{
}
}
@@ -576,9 +576,8 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >&
{
xObj = _rxInStream->readObject();
}
- catch(WrongFormatException& e)
+ catch(const WrongFormatException&)
{
- (void)e; // make compiler happy
// the object could not be read
// create a object (so the readEvents below will assign the events to the right controls)
xObj = lcl_createPlaceHolder( m_xServiceFactory );
@@ -586,7 +585,7 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >&
// couldn't handle it
throw;
}
- catch(Exception&)
+ catch(const Exception&)
{
// unsere Map leeren
while (!m_aItems.empty())
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx
index 6259944b149b..aa0297a62cf3 100644
--- a/forms/source/runtime/formoperations.cxx
+++ b/forms/source/runtime/formoperations.cxx
@@ -979,7 +979,7 @@ namespace frm
m_xParser->setOrder( sNewValue );
}
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "FormOperations::propertyChange: caught an exception while updating the parser!" );
}
diff --git a/forms/source/xforms/propertysetbase.cxx b/forms/source/xforms/propertysetbase.cxx
index 64c53bc5583d..8d6dc0843e6b 100644
--- a/forms/source/xforms/propertysetbase.cxx
+++ b/forms/source/xforms/propertysetbase.cxx
@@ -121,7 +121,7 @@ void PropertySetBase::notifyAndCachePropertyValue( sal_Int32 nHandle )
// insert into the cache
aPos = m_aCache.insert( PropertyValueCache::value_type( nHandle, aEmptyValue ) ).first;
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL( "PropertySetBase::notifyAndCachePropertyValue: this is not expected to fail!" );
}
diff --git a/forms/source/xforms/submission/replace.cxx b/forms/source/xforms/submission/replace.cxx
index db81d3e3ecfe..015a5ead9247 100644
--- a/forms/source/xforms/submission/replace.cxx
+++ b/forms/source/xforms/submission/replace.cxx
@@ -107,7 +107,7 @@ CSubmission::SubmissionResult CSubmission::replace(const ::rtl::OUString& aRepla
// do nothing \o/
return CSubmission::SUCCESS;
}
- } catch (Exception& e) {
+ } catch (const Exception& e) {
::rtl::OString aMsg("Exception during replace:\n");
aMsg += OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8);
OSL_FAIL(aMsg.getStr());
diff --git a/forms/source/xforms/submission/submission_get.cxx b/forms/source/xforms/submission/submission_get.cxx
index 9c7782880992..5dc9194bec66 100644
--- a/forms/source/xforms/submission/submission_get.cxx
+++ b/forms/source/xforms/submission/submission_get.cxx
@@ -103,10 +103,10 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const CSS::uno::Reference<
// get reply
try {
m_aResultStream = aContent.openStream();
- } catch (Exception&) {
+ } catch (const Exception&) {
OSL_FAIL("Cannot open reply stream from content");
}
- } catch (Exception&)
+ } catch (const Exception&)
{
// XXX
OSL_FAIL("Exception during UCB operatration.");
diff --git a/forms/source/xforms/submission/submission_post.cxx b/forms/source/xforms/submission/submission_post.cxx
index 8ad6924788ba..ca72e41272c1 100644
--- a/forms/source/xforms/submission/submission_post.cxx
+++ b/forms/source/xforms/submission/submission_post.cxx
@@ -77,10 +77,10 @@ CSubmission::SubmissionResult CSubmissionPost::submit(const CSS::uno::Reference<
try {
m_aResultStream = aSink->getInputStream();
- } catch (Exception&) {
+ } catch (const Exception&) {
OSL_FAIL("Cannot open reply stream from content");
}
- } catch (Exception&)
+ } catch (const Exception&)
{
OSL_FAIL("Exception during UCB operatration.");
return UNKNOWN_ERROR;
diff --git a/forms/source/xforms/submission/submission_put.cxx b/forms/source/xforms/submission/submission_put.cxx
index 9d30ef318a9e..8536a43d6403 100644
--- a/forms/source/xforms/submission/submission_put.cxx
+++ b/forms/source/xforms/submission/submission_put.cxx
@@ -66,7 +66,7 @@ CSubmission::SubmissionResult CSubmissionPut::submit(const CSS::uno::Reference<
// no content as a result of put...
- } catch (Exception&)
+ } catch (const Exception&)
{
// XXX
OSL_FAIL("Exception during UCB operatration.");
diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx
index 5168fd7cd705..71759dfa3d89 100644
--- a/forms/source/xforms/xpathlib/xpathlib.cxx
+++ b/forms/source/xforms/xpathlib/xpathlib.cxx
@@ -528,7 +528,7 @@ void xforms_instanceFuction(xmlXPathParserContextPtr ctxt, int nargs)
xmlNodePtr pNode = reinterpret_cast< xmlNodePtr >( aTunnel->getSomething(Sequence< sal_Int8 >()) );
xmlXPathObjectPtr pObject = xmlXPathNewNodeSet(pNode);
xmlXPathReturnNodeSet(ctxt, pObject->nodesetval);
- } catch (RuntimeException&)
+ } catch (const RuntimeException&)
{
xmlXPathReturnEmptyNodeSet(ctxt);
}
@@ -556,7 +556,7 @@ void xforms_currentFunction(xmlXPathParserContextPtr ctxt, int nargs)
xmlXPathObjectPtr pObject = xmlXPathNewNodeSet(pNode);
xmlXPathReturnNodeSet(ctxt, pObject->nodesetval);
}
- catch (RuntimeException&)
+ catch (const RuntimeException&)
{
xmlXPathReturnEmptyNodeSet(ctxt);
}