[Libreoffice-commits] .: sw/source toolkit/source ucb/source ucb/workben unodevtools/source

Takeshi Abe tabe at kemper.freedesktop.org
Fri Jan 6 22:54:55 PST 2012


 sw/source/core/edit/edundo.cxx                       |    6 +-
 sw/source/core/tox/toxhlp.cxx                        |   12 ++---
 sw/source/core/unocore/unoparagraph.cxx              |    4 -
 sw/source/core/unocore/unoport.cxx                   |    6 +-
 sw/source/core/unocore/unorefmk.cxx                  |    2 
 sw/source/core/unocore/unosect.cxx                   |    2 
 sw/source/core/unocore/unostyle.cxx                  |    4 -
 sw/source/filter/xml/swxml.cxx                       |   10 ++--
 toolkit/source/awt/vclxtoolkit.cxx                   |    8 +--
 toolkit/source/controls/tree/treecontrol.cxx         |    8 +--
 ucb/source/ucp/expand/ucpexpand.cxx                  |    2 
 ucb/source/ucp/webdav/DAVResourceAccess.cxx          |   40 +++++++++----------
 ucb/source/ucp/webdav/DAVResourceAccess.hxx          |    2 
 ucb/workben/ucb/ucbdemo.cxx                          |    4 -
 unodevtools/source/skeletonmaker/cppcompskeleton.cxx |    4 -
 15 files changed, 57 insertions(+), 57 deletions(-)

New commits:
commit e4ce7225dd987f9b2f250f055d9688de79931444
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sat Jan 7 15:50:41 2012 +0900

    catch exception by constant reference

diff --git a/sw/source/core/edit/edundo.cxx b/sw/source/core/edit/edundo.cxx
index 7b2ae83..95c9252 100644
--- a/sw/source/core/edit/edundo.cxx
+++ b/sw/source/core/edit/edundo.cxx
@@ -136,7 +136,7 @@ bool SwEditShell::Undo(sal_uInt16 const nCount)
                 bRet = GetDoc()->GetIDocumentUndoRedo().Undo()
                     || bRet;
             }
-        } catch (::com::sun::star::uno::Exception & e) {
+        } catch (const ::com::sun::star::uno::Exception & e) {
             OSL_TRACE("SwEditShell::Undo(): exception caught:\n %s",
                 ::rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8)
                     .getStr());
@@ -187,7 +187,7 @@ bool SwEditShell::Redo(sal_uInt16 const nCount)
                 bRet = GetDoc()->GetIDocumentUndoRedo().Redo()
                     || bRet;
             }
-        } catch (::com::sun::star::uno::Exception & e) {
+        } catch (const ::com::sun::star::uno::Exception & e) {
             OSL_TRACE("SwEditShell::Redo(): exception caught:\n %s",
                 ::rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8)
                     .getStr());
@@ -217,7 +217,7 @@ bool SwEditShell::Repeat(sal_uInt16 const nCount)
         ::sw::RepeatContext context(*GetDoc(), *GetCrsr());
         bRet = GetDoc()->GetIDocumentUndoRedo().Repeat( context, nCount )
             || bRet;
-    } catch (::com::sun::star::uno::Exception & e) {
+    } catch (const ::com::sun::star::uno::Exception & e) {
         OSL_TRACE("SwEditShell::Repeat(): exception caught:\n %s",
             ::rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8)
                 .getStr());
diff --git a/sw/source/core/tox/toxhlp.cxx b/sw/source/core/tox/toxhlp.cxx
index 95e5a20..f1ae986 100644
--- a/sw/source/core/tox/toxhlp.cxx
+++ b/sw/source/core/tox/toxhlp.cxx
@@ -55,7 +55,7 @@ IndexEntrySupplierWrapper::IndexEntrySupplierWrapper()
             x >>= xIES;
         }
     }
-    catch ( UNO_NMSPC::Exception&
+    catch (const UNO_NMSPC::Exception&
 #if OSL_DEBUG_LEVEL > 0
         e
 #endif
@@ -81,7 +81,7 @@ String IndexEntrySupplierWrapper::GetIndexKey( const String& rTxt,
     try {
         sRet = xIES->getIndexKey( rTxt, rTxtReading, rLocale );
     }
-    catch ( UNO_NMSPC::Exception&
+    catch (const UNO_NMSPC::Exception&
 #if OSL_DEBUG_LEVEL > 0
         e
 #endif
@@ -102,7 +102,7 @@ String IndexEntrySupplierWrapper::GetFollowingText( sal_Bool bMorePages ) const
     try {
         sRet = xIES->getIndexFollowPageWord( bMorePages, aLcl );
     }
-    catch ( UNO_NMSPC::Exception&
+    catch (const UNO_NMSPC::Exception&
 #if OSL_DEBUG_LEVEL > 0
         e
 #endif
@@ -125,7 +125,7 @@ IndexEntrySupplierWrapper::GetAlgorithmList( const STAR_NMSPC::lang::Locale& rLc
     try {
         sRet = xIES->getAlgorithmList( rLcl );
     }
-    catch ( UNO_NMSPC::Exception&
+    catch (const UNO_NMSPC::Exception&
 #if OSL_DEBUG_LEVEL > 0
         e
 #endif
@@ -148,7 +148,7 @@ sal_Bool IndexEntrySupplierWrapper::LoadAlgorithm(
     try {
         bRet = xIES->loadAlgorithm( rLcl, sSortAlgorithm, nOptions );
     }
-    catch ( UNO_NMSPC::Exception&
+    catch (const UNO_NMSPC::Exception&
 #if OSL_DEBUG_LEVEL > 0
         e
 #endif
@@ -174,7 +174,7 @@ sal_Int16 IndexEntrySupplierWrapper::CompareIndexEntry(
         nRet = xIES->compareIndexEntry( rTxt1, rTxtReading1, rLocale1,
                                         rTxt2, rTxtReading2, rLocale2 );
     }
-    catch ( UNO_NMSPC::Exception&
+    catch (const UNO_NMSPC::Exception&
 #if OSL_DEBUG_LEVEL > 0
         e
 #endif
diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx
index 930eaf9..0f8a412 100644
--- a/sw/source/core/unocore/unoparagraph.cxx
+++ b/sw/source/core/unocore/unoparagraph.cxx
@@ -432,7 +432,7 @@ throw (beans::PropertyVetoException, lang::IllegalArgumentException,
     {
         m_pImpl->SetPropertyValues_Impl( rPropertyNames, rValues );
     }
-    catch (beans::UnknownPropertyException &rException)
+    catch (const beans::UnknownPropertyException &rException)
     {
         // wrap the original (here not allowed) exception in
         // a lang::WrappedTargetException that gets thrown instead.
@@ -605,7 +605,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
         catch (beans::UnknownPropertyException &)
         {
             // should not occur because property was searched for before
-            OSL_FAIL( "unexpected exception catched" );
+            OSL_FAIL( "unexpected exception caught" );
             pFailed[ nFailed++ ].Result =
                 beans::TolerantPropertySetResultType::UNKNOWN_PROPERTY;
         }
diff --git a/sw/source/core/unocore/unoport.cxx b/sw/source/core/unocore/unoport.cxx
index 57ee034..334dc04 100644
--- a/sw/source/core/unocore/unoport.cxx
+++ b/sw/source/core/unocore/unoport.cxx
@@ -483,7 +483,7 @@ void SwXTextPortion::setPropertyValues(
     {
         SetPropertyValues_Impl( rPropertyNames, rValues );
     }
-    catch (beans::UnknownPropertyException &rException)
+    catch (const beans::UnknownPropertyException &rException)
     {
         // wrap the original (here not allowed) exception in
         // a lang::WrappedTargetException that gets thrown instead.
@@ -569,7 +569,7 @@ uno::Sequence< beans::SetPropertyTolerantFailed > SAL_CALL SwXTextPortion::setPr
         catch (beans::UnknownPropertyException &)
         {
             // should not occur because property was searched for before
-            OSL_FAIL( "unexpected exception catched" );
+            OSL_FAIL( "unexpected exception caught" );
             pFailed[ nFailed++ ].Result = beans::TolerantPropertySetResultType::UNKNOWN_PROPERTY;
         }
         catch (lang::IllegalArgumentException &)
@@ -681,7 +681,7 @@ uno::Sequence< beans::GetDirectPropertyTolerantResult > SAL_CALL SwXTextPortion:
         catch (beans::UnknownPropertyException &)
         {
             // should not occur because property was searched for before
-            OSL_FAIL( "unexpected exception catched" );
+            OSL_FAIL( "unexpected exception caught" );
             aResult.Result = beans::TolerantPropertySetResultType::UNKNOWN_PROPERTY;
         }
         catch (lang::IllegalArgumentException &)
diff --git a/sw/source/core/unocore/unorefmk.cxx b/sw/source/core/unocore/unorefmk.cxx
index c3b051d..00b069c 100644
--- a/sw/source/core/unocore/unorefmk.cxx
+++ b/sw/source/core/unocore/unorefmk.cxx
@@ -1603,7 +1603,7 @@ getPrefixAndSuffix(
         }
     } catch (uno::RuntimeException &) {
         throw;
-    } catch (uno::Exception & e) {
+    } catch (const uno::Exception & e) {
         throw lang::WrappedTargetRuntimeException(
             ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("getPrefixAndSuffix: exception")),
             0, uno::makeAny(e));
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index 535ff04..836c679 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -946,7 +946,7 @@ throw (beans::PropertyVetoException, lang::IllegalArgumentException,
     {
         m_pImpl->SetPropertyValues_Impl( rPropertyNames, rValues );
     }
-    catch (beans::UnknownPropertyException &rException)
+    catch (const beans::UnknownPropertyException &rException)
     {
         // wrap the original (here not allowed) exception in
         // a WrappedTargetException that gets thrown instead.
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index c5cb4c5..9b8b495 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -2153,7 +2153,7 @@ void SwXStyle::setPropertyValues(
     {
         SetPropertyValues_Impl( rPropertyNames, rValues );
     }
-    catch (beans::UnknownPropertyException &rException)
+    catch (const beans::UnknownPropertyException &rException)
     {
         // wrap the original (here not allowed) exception in
         // a lang::WrappedTargetException that gets thrown instead.
@@ -3181,7 +3181,7 @@ void SwXPageStyle::setPropertyValues(
     {
         SetPropertyValues_Impl( rPropertyNames, rValues );
     }
-    catch (beans::UnknownPropertyException &rException)
+    catch (const beans::UnknownPropertyException &rException)
     {
         // wrap the original (here not allowed) exception in
         // a lang::WrappedTargetException that gets thrown instead.
diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx
index ee20492..d0be621 100644
--- a/sw/source/filter/xml/swxml.cxx
+++ b/sw/source/filter/xml/swxml.cxx
@@ -247,7 +247,7 @@ sal_Int32 ReadThroughComponent(
                              ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR );
         }
     }
-    catch( xml::sax::SAXException& r)
+    catch(const xml::sax::SAXException& r)
     {
         packages::zip::ZipIOException aBrokenPackage;
         if ( r.WrappedException >>= aBrokenPackage )
@@ -266,7 +266,7 @@ sal_Int32 ReadThroughComponent(
 
         return ERR_SWG_READ_ERROR;
     }
-    catch( packages::zip::ZipIOException& r)
+    catch(const packages::zip::ZipIOException& r)
     {
         (void)r;
 #if OSL_DEBUG_LEVEL > 0
@@ -278,7 +278,7 @@ sal_Int32 ReadThroughComponent(
 #endif
         return ERRCODE_IO_BROKENPACKAGE;
     }
-    catch( io::IOException& r)
+    catch(const io::IOException& r)
     {
         (void)r;
 #if OSL_DEBUG_LEVEL > 0
@@ -290,7 +290,7 @@ sal_Int32 ReadThroughComponent(
 #endif
         return ERR_SWG_READ_ERROR;
     }
-    catch( uno::Exception& r)
+    catch(const uno::Exception& r)
     {
         (void)r;
 #if OSL_DEBUG_LEVEL > 0
@@ -891,7 +891,7 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPaM, con
                 pDocSh->GetMedium()->GetInteractionHandler() );
             xDMA->loadMetadataFromStorage(xStorage, xBaseURI, xHandler);
         }
-        catch (lang::WrappedTargetException & e)
+        catch (const lang::WrappedTargetException & e)
         {
             ucb::InteractiveAugmentedIOException iaioe;
             if (e.TargetException >>= iaioe)
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 0eb2d1a..b9d94be 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -1224,7 +1224,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow(
             {
                 pChildWindow = new WorkWindow( &aParentData );
             }
-            catch ( ::com::sun::star::uno::RuntimeException & rEx )
+            catch ( const ::com::sun::star::uno::RuntimeException & rEx )
             {
                 // system child window could not be created
                 OSL_TRACE(
@@ -1638,7 +1638,7 @@ void VCLXToolkit::callTopWindowListeners(
                 {
                     (xListener.get()->*pFn)(aAwtEvent);
                 }
-                catch (::css::uno::RuntimeException & rEx)
+                catch (const ::css::uno::RuntimeException & rEx)
                 {
                     OSL_TRACE(
                         "VCLXToolkit::callTopWindowListeners: caught %s\n",
@@ -1686,7 +1686,7 @@ long VCLXToolkit::callKeyHandlers(::VclSimpleEvent const * pEvent,
                       : xHandler->keyReleased(aAwtEvent)))
                     return 1;
             }
-            catch (::css::uno::RuntimeException & rEx)
+            catch (const ::css::uno::RuntimeException & rEx)
             {
                 OSL_TRACE(
                     "VCLXToolkit::callKeyHandlers: caught %s\n",
@@ -1734,7 +1734,7 @@ void VCLXToolkit::callFocusListeners(::VclSimpleEvent const * pEvent,
                     bGained ? xListener->focusGained(aAwtEvent)
                         : xListener->focusLost(aAwtEvent);
                 }
-                catch (::css::uno::RuntimeException & rEx)
+                catch (const ::css::uno::RuntimeException & rEx)
                 {
                     OSL_TRACE(
                         "VCLXToolkit::callFocusListeners: caught %s\n",
diff --git a/toolkit/source/controls/tree/treecontrol.cxx b/toolkit/source/controls/tree/treecontrol.cxx
index 7cb35b3..72a14eb 100644
--- a/toolkit/source/controls/tree/treecontrol.cxx
+++ b/toolkit/source/controls/tree/treecontrol.cxx
@@ -471,13 +471,13 @@ void SAL_CALL TreeEditListenerMultiplexer::nodeEditing( const Reference< XTreeNo
         {
             xListener->nodeEditing( Node );
         }
-        catch( DisposedException& e )
+        catch( const DisposedException& e )
         {
             OSL_ENSURE( e.Context.is(), "caught DisposedException with empty Context field" );
             if ( e.Context == xListener || !e.Context.is() )
                 aIt.remove();
         }
-        catch( RuntimeException& e )
+        catch( const RuntimeException& e )
         {
             (void)e;
             DISPLAY_EXCEPTION( TreeEditListenerMultiplexer, nodeEditing, e )
@@ -495,13 +495,13 @@ void SAL_CALL TreeEditListenerMultiplexer::nodeEdited( const Reference< XTreeNod
         {
             xListener->nodeEdited( Node, NewText );
         }
-        catch( DisposedException& e )
+        catch( const DisposedException& e )
         {
             OSL_ENSURE( e.Context.is(), "caught DisposedException with empty Context field" );
             if ( e.Context == xListener || !e.Context.is() )
                 aIt.remove();
         }
-        catch( RuntimeException& e )
+        catch( const RuntimeException& e )
         {
             (void)e;
             DISPLAY_EXCEPTION( TreeEditListenerMultiplexer, nodeEdited, e )
diff --git a/ucb/source/ucp/expand/ucpexpand.cxx b/ucb/source/ucp/expand/ucpexpand.cxx
index a3ae571..0c74ba4 100644
--- a/ucb/source/ucp/expand/ucpexpand.cxx
+++ b/ucb/source/ucp/expand/ucpexpand.cxx
@@ -239,7 +239,7 @@ sal_Int32 ExpandContentProviderImpl::compareContentIds(
         OUString uri2( expandUri( xId2 ) );
         return uri1.compareTo( uri2 );
     }
-    catch (ucb::IllegalIdentifierException & exc)
+    catch (const ucb::IllegalIdentifierException & exc)
     {
         (void) exc; // unused
         OSL_FAIL(
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx
index cfa3c8d..fb67fd3 100644
--- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx
+++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx
@@ -202,7 +202,7 @@ void DAVResourceAccess::OPTIONS(
                                      new DAVAuthListener_Impl( xEnv, m_aURL ),
                                      aHeaders, xEnv) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -248,7 +248,7 @@ void DAVResourceAccess::PROPFIND(
                                       new DAVAuthListener_Impl( xEnv, m_aURL ),
                                       aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -290,7 +290,7 @@ void DAVResourceAccess::PROPFIND(
                                       new DAVAuthListener_Impl( xEnv, m_aURL ),
                                       aHeaders, xEnv ) ) ;
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -330,7 +330,7 @@ void DAVResourceAccess::PROPPATCH(
                                        new DAVAuthListener_Impl( xEnv, m_aURL ),
                                        aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -371,7 +371,7 @@ void DAVResourceAccess::HEAD(
                                   new DAVAuthListener_Impl( xEnv, m_aURL ),
                                   aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -410,7 +410,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET(
                                                xEnv, m_aURL ),
                                            aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -451,7 +451,7 @@ void DAVResourceAccess::GET(
                                  new DAVAuthListener_Impl( xEnv, m_aURL ),
                                  aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -494,7 +494,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET(
                                                xEnv, m_aURL ),
                                            aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -539,7 +539,7 @@ void DAVResourceAccess::GET(
                                  new DAVAuthListener_Impl( xEnv, m_aURL ),
                                  aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -624,7 +624,7 @@ void DAVResourceAccess::PUT(
                                  new DAVAuthListener_Impl( xEnv, m_aURL ),
                                  aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -679,7 +679,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::POST(
                                                 xEnv, m_aURL ),
                                             aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -742,7 +742,7 @@ void DAVResourceAccess::POST(
                                   new DAVAuthListener_Impl( xEnv, m_aURL ),
                                   aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -786,7 +786,7 @@ void DAVResourceAccess::MKCOL(
                                    new DAVAuthListener_Impl( xEnv, m_aURL ),
                                    aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -828,7 +828,7 @@ void DAVResourceAccess::COPY(
                                   aHeaders, xEnv ),
                               bOverwrite );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -870,7 +870,7 @@ void DAVResourceAccess::MOVE(
                                   aHeaders, xEnv ),
                               bOverwrite );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -908,7 +908,7 @@ void DAVResourceAccess::DESTROY(
                                      new DAVAuthListener_Impl( xEnv, m_aURL ),
                                      aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -948,7 +948,7 @@ void DAVResourceAccess::LOCK(
                                   new DAVAuthListener_Impl( xEnv, m_aURL ),
                                   aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -991,7 +991,7 @@ sal_Int64 DAVResourceAccess::LOCK(
                                                     xEnv, m_aURL ),
                                             aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -1031,7 +1031,7 @@ void DAVResourceAccess::UNLOCK(
                                     new DAVAuthListener_Impl( xEnv, m_aURL ),
                                     aHeaders, xEnv ) );
         }
-        catch ( DAVException & e )
+        catch ( const DAVException & e )
         {
             errorCount++;
             bRetry = handleException( e, errorCount );
@@ -1182,7 +1182,7 @@ void DAVResourceAccess::resetUri()
 }
 
 //=========================================================================
-sal_Bool DAVResourceAccess::handleException( DAVException & e, int errorCount )
+sal_Bool DAVResourceAccess::handleException( const DAVException & e, int errorCount )
     throw ( DAVException )
 {
     switch ( e.getError() )
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.hxx b/ucb/source/ucp/webdav/DAVResourceAccess.hxx
index 6b2692a..bb5df61 100644
--- a/ucb/source/ucp/webdav/DAVResourceAccess.hxx
+++ b/ucb/source/ucp/webdav/DAVResourceAccess.hxx
@@ -241,7 +241,7 @@ private:
     const rtl::OUString & getRequestURI() const;
     sal_Bool detectRedirectCycle( const rtl::OUString& rRedirectURL )
         throw ( DAVException );
-    sal_Bool handleException( DAVException & e, int errorCount )
+    sal_Bool handleException( const DAVException & e, int errorCount )
         throw ( DAVException );
     void initialize()
         throw ( DAVException );
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx
index 420e2c5..7ebc94a 100644
--- a/ucb/workben/ucb/ucbdemo.cxx
+++ b/ucb/workben/ucb/ucbdemo.cxx
@@ -1174,7 +1174,7 @@ void UcbContent::open( const rtl::OUString & rName, const UniString& rInput,
                                           nLevel + 1 ) );
                 }
             }
-            catch ( ucb::ResultSetException )
+            catch (const ucb::ResultSetException &)
             {
                 print( "ResultSetException caught!" );
             }
@@ -2503,7 +2503,7 @@ void MyApp::Main()
             return;
         }
     }
-    catch ( uno::Exception )
+    catch (const uno::Exception &)
     {
         OSL_FAIL( "Exception during creation of initial component context!" );
         return;
diff --git a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
index d7e484e..648efa6 100644
--- a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
+++ b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
@@ -1087,7 +1087,7 @@ void generateSkeleton(ProgramOptions const & options,
             delete pofs;
             OSL_VERIFY(makeValidTypeFile(compFileName, tmpFileName, sal_False));
         }
-    } catch(CannotDumpException& e) {
+    } catch(const CannotDumpException& e) {
 
         std::cerr << "ERROR: " << e.m_message.getStr() << "\n";
         if ( !standardout ) {
@@ -1251,7 +1251,7 @@ void generateCalcAddin(ProgramOptions const & options,
             delete pofs;
             OSL_VERIFY(makeValidTypeFile(compFileName, tmpFileName, sal_False));
         }
-    } catch(CannotDumpException& e) {
+    } catch(const CannotDumpException& e) {
 
         std::cerr << "ERROR: " << e.m_message.getStr() << "\n";
         if ( !standardout ) {


More information about the Libreoffice-commits mailing list