diff options
Diffstat (limited to 'basic/source/runtime')
-rw-r--r-- | basic/source/runtime/comenumwrapper.cxx | 4 | ||||
-rw-r--r-- | basic/source/runtime/iosys.cxx | 12 | ||||
-rw-r--r-- | basic/source/runtime/methods.cxx | 28 | ||||
-rw-r--r-- | basic/source/runtime/methods1.cxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/runtime.cxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/step2.cxx | 2 |
6 files changed, 25 insertions, 25 deletions
diff --git a/basic/source/runtime/comenumwrapper.cxx b/basic/source/runtime/comenumwrapper.cxx index ba3def41838f..45e3a5f45376 100644 --- a/basic/source/runtime/comenumwrapper.cxx +++ b/basic/source/runtime/comenumwrapper.cxx @@ -45,7 +45,7 @@ using namespace ::com::sun::star; && nLength > m_nCurInd ); } } - catch( uno::Exception& ) + catch(const uno::Exception& ) {} return bResult; @@ -72,7 +72,7 @@ uno::Any SAL_CALL ComEnumerationWrapper::nextElement() aNamedParam ); } } - catch( uno::Exception& ) + catch(const uno::Exception& ) {} throw container::NoSuchElementException(); diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 6801c5db644f..77654904e017 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -450,7 +450,7 @@ UCBStream::~UCBStream() xIS_->closeInput(); } } - catch( Exception & ) + catch(const Exception & ) { SetError( ERRCODE_IO_GENERAL ); } @@ -478,7 +478,7 @@ sal_uIntPtr UCBStream::GetData( void* pData, sal_uIntPtr nSize ) else SetError( ERRCODE_IO_GENERAL ); } - catch( Exception & ) + catch(const Exception & ) { SetError( ERRCODE_IO_GENERAL ); } @@ -505,7 +505,7 @@ sal_uIntPtr UCBStream::PutData( const void* pData, sal_uIntPtr nSize ) else SetError( ERRCODE_IO_GENERAL ); } - catch( Exception & ) + catch(const Exception & ) { SetError( ERRCODE_IO_GENERAL ); } @@ -527,7 +527,7 @@ sal_uIntPtr UCBStream::SeekPos( sal_uIntPtr nPos ) else SetError( ERRCODE_IO_GENERAL ); } - catch( Exception & ) + catch(const Exception & ) { SetError( ERRCODE_IO_GENERAL ); } @@ -546,7 +546,7 @@ void UCBStream::FlushData() else SetError( ERRCODE_IO_GENERAL ); } - catch( Exception & ) + catch(const Exception & ) { SetError( ERRCODE_IO_GENERAL ); } @@ -610,7 +610,7 @@ SbError SbiStream::Open } } - catch( Exception & ) + catch(const Exception & ) { nError = ERRCODE_IO_GENERAL; } diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 175d7a9eecf8..562b2891afa9 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -529,7 +529,7 @@ void implStepRenameUCB( const String& aSource, const String& aDest ) else xSFI->move( aSourceFullPath, aDestFullPath ); } - catch( Exception & ) + catch(const Exception & ) { StarBASIC::Error( SbERR_FILE_NOT_FOUND ); } @@ -565,7 +565,7 @@ RTLFUNC(FileCopy) { xSFI->copy( getFullPath( aSource ), getFullPath( aDest ) ); } - catch( Exception & ) + catch(const Exception & ) { StarBASIC::Error( SbERR_PATH_NOT_FOUND ); } @@ -609,7 +609,7 @@ RTLFUNC(Kill) { xSFI->kill( aFullPath ); } - catch( Exception & ) + catch(const Exception & ) { StarBASIC::Error( ERRCODE_IO_GENERAL ); } @@ -673,7 +673,7 @@ RTLFUNC(MkDir) xSFI->createFolder( getFullPath( aPath ) ); } - catch( Exception & ) + catch(const Exception & ) { StarBASIC::Error( ERRCODE_IO_GENERAL ); } @@ -782,7 +782,7 @@ RTLFUNC(RmDir) xSFI->kill( getFullPath( aPath ) ); } - catch( Exception & ) + catch(const Exception & ) { StarBASIC::Error( ERRCODE_IO_GENERAL ); } @@ -843,7 +843,7 @@ RTLFUNC(FileLen) { nLen = xSFI->getSize( getFullPath( aStr ) ); } - catch( Exception & ) + catch(const Exception & ) { StarBASIC::Error( ERRCODE_IO_GENERAL ); } @@ -2592,7 +2592,7 @@ RTLFUNC(Dir) { sal_Bool bExists = sal_False; try { bExists = xSFI->exists( aFileURLStr ); } - catch( Exception & ) {} + catch(const Exception & ) {} String aNameOnlyStr; if( bExists ) @@ -2646,7 +2646,7 @@ RTLFUNC(Dir) } } } - catch( Exception & ) + catch(const Exception & ) { } } @@ -2865,7 +2865,7 @@ RTLFUNC(GetAttr) String aPath = getFullPath( rPar.Get(1)->GetString() ); sal_Bool bExists = sal_False; try { bExists = xSFI->exists( aPath ); } - catch( Exception & ) {} + catch(const Exception & ) {} if( !bExists ) { StarBASIC::Error( SbERR_FILE_NOT_FOUND ); @@ -2882,7 +2882,7 @@ RTLFUNC(GetAttr) if( bDirectory ) nFlags |= 0x0010; // ATTR_DIRECTORY } - catch( Exception & ) + catch(const Exception & ) { StarBASIC::Error( ERRCODE_IO_GENERAL ); } @@ -2934,7 +2934,7 @@ RTLFUNC(FileDateTime) aTime = Time( aUnoDT.Hours, aUnoDT.Minutes, aUnoDT.Seconds, aUnoDT.HundredthSeconds ); aDate = Date( aUnoDT.Day, aUnoDT.Month, aUnoDT.Year ); } - catch( Exception & ) + catch(const Exception & ) { StarBASIC::Error( ERRCODE_IO_GENERAL ); } @@ -3514,7 +3514,7 @@ String getObjectTypeName( SbxVariable* pVar ) { xInv->getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("$GetTypeName") ) ) >>= sRet; } - catch( Exception& ) + catch(const Exception& ) { } } @@ -4269,7 +4269,7 @@ RTLFUNC(SetAttr) sal_Bool bHidden = (nFlags & 0x0002) != 0; // ATTR_HIDDEN xSFI->setHidden( aStr, bHidden ); } - catch( Exception & ) + catch(const Exception & ) { StarBASIC::Error( ERRCODE_IO_GENERAL ); } @@ -4335,7 +4335,7 @@ RTLFUNC(FileExists) { bExists = xSFI->exists( aStr ); } - catch( Exception & ) + catch(const Exception & ) { StarBASIC::Error( ERRCODE_IO_GENERAL ); } diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index 56b22cd69a5e..20191cbdcf00 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -2618,7 +2618,7 @@ void CallFunctionAccessFunction( const Sequence< Any >& aArgs, const rtl::OUStri unoToSbxValue( pRet, aRet ); } - catch( Exception& ) + catch(const Exception& ) { StarBASIC::Error( SbERR_BAD_ARGUMENT ); } diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index ba03bdac939e..b7bcfe38057d 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -1179,7 +1179,7 @@ void SbiRuntime::PushForEach() p->xEnumeration = new ComEnumerationWrapper( xInvocation ); p->eForType = FOR_EACH_XENUMERATION; } - catch( uno::Exception& ) + catch(const uno::Exception& ) {} } diff --git a/basic/source/runtime/step2.cxx b/basic/source/runtime/step2.cxx index e9ed8b533b40..89c369a95adf 100644 --- a/basic/source/runtime/step2.cxx +++ b/basic/source/runtime/step2.cxx @@ -558,7 +558,7 @@ SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem ) if( eType == TypeClass_INTERFACE ) xRet = *(Reference< XInterface >*)aAny2.getValue(); } - catch (IndexOutOfBoundsException&) + catch (const IndexOutOfBoundsException&) { // Bei Exception erstmal immer von Konvertierungs-Problem ausgehen StarBASIC::Error( SbERR_OUT_OF_RANGE ); |