diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-06 15:13:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-06 16:28:27 +0100 |
commit | 81c5bd4bd2a6104c3d1dd1c3b61206aad26d29cd (patch) | |
tree | 05d8f7c642aaa393b0fd9cdb67556566636c0a60 /vbahelper/source | |
parent | ByteString->rtl::OStringBuffer (diff) | |
download | core-81c5bd4bd2a6104c3d1dd1c3b61206aad26d29cd.tar.gz core-81c5bd4bd2a6104c3d1dd1c3b61206aad26d29cd.zip |
WaE: unused variable
Diffstat (limited to 'vbahelper/source')
-rw-r--r-- | vbahelper/source/msforms/vbacontrols.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx index 543a4bfcd56f..53706cfccb82 100644 --- a/vbahelper/source/msforms/vbacontrols.cxx +++ b/vbahelper/source/msforms/vbacontrols.cxx @@ -101,7 +101,7 @@ public: for ( sal_Int32 i = 0; i < sXControls.getLength(); ++i ) SetArrayElementTo( sXControls[ i ], i ); } - catch( uno::Exception& ) + catch (const uno::Exception&) { // accept the case when the dialog already does not exist // in this case the wrapper should work in dummy mode @@ -415,7 +415,7 @@ uno::Any SAL_CALL ScVbaControls::Add( const uno::Any& Object, const uno::Any& St uno::Sequence< uno::Any > aOutDummy; xControlInvoke->invoke( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SOAddAXControl" ) ), aArgs, aOutIDDummy, aOutDummy ); } - catch( uno::Exception& ) + catch (const uno::Exception&) { xDialogContainer->removeByName( aNewName ); throw; @@ -436,11 +436,11 @@ uno::Any SAL_CALL ScVbaControls::Add( const uno::Any& Object, const uno::Any& St else throw uno::RuntimeException(); } - catch( uno::RuntimeException& ) + catch (const uno::RuntimeException&) { throw; } - catch( uno::Exception& e ) + catch (const uno::Exception& e) { throw lang::WrappedTargetException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Can not create AXControl!" ) ), uno::Reference< uno::XInterface >(), @@ -488,14 +488,14 @@ void SAL_CALL ScVbaControls::Remove( const uno::Any& StringKeyOrIndex ) xDialogContainer->removeByName( aControlName ); xControl->dispose(); } - catch( uno::RuntimeException& ) + catch (const uno::RuntimeException&) { // the exceptions are not rethrown, impossibility to find or remove the control is currently not reported // since in most cases it means just that the controls is already not there, the VBA seems to do it in the same way // throw; } - catch( uno::Exception& e ) + catch (const uno::Exception&) { // throw lang::WrappedTargetException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Can not create AXControl!" ) ), // uno::Reference< uno::XInterface >(), |