[Libreoffice-commits] core.git: sd/source svx/source xmloff/source

Caolán McNamara caolanm at redhat.com
Fri Nov 14 09:22:03 PST 2014


 sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx |    6 +++---
 svx/source/fmcomp/dbaobjectex.cxx                         |    2 +-
 xmloff/source/text/txtfldi.cxx                            |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 0b3766645d7d52d5c2022b1e8e4617eff06403c8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Nov 14 17:21:20 2014 +0000

    more catch by reference
    
    Change-Id: I2db9f94a517f814ef0854190e6f1194501070409

diff --git a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
index 3cd301c..2621071 100644
--- a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
+++ b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
@@ -979,12 +979,12 @@ uno::Reference<XAccessible> AccessibleDrawDocumentView::GetSelAccContextInTable(
                     }
                 }
             }
-            catch ( lang::IndexOutOfBoundsException )
+            catch (const lang::IndexOutOfBoundsException&)
             {
                 uno::Reference<XAccessible> xEmpty;
                 return xEmpty;
             }
-            catch ( uno::RuntimeException )
+            catch (const uno::RuntimeException&)
             {
                 uno::Reference<XAccessible> xEmpty;
                 return xEmpty;
@@ -1014,7 +1014,7 @@ void AccessibleDrawDocumentView::UpdateAccessibleName (void)
                     sNewName += OUString::number(nPageNumber);
                 }
             }
-            catch (beans::UnknownPropertyException&)
+            catch (const beans::UnknownPropertyException&)
             {
             }
     }
diff --git a/svx/source/fmcomp/dbaobjectex.cxx b/svx/source/fmcomp/dbaobjectex.cxx
index c327c75..d43184e 100644
--- a/svx/source/fmcomp/dbaobjectex.cxx
+++ b/svx/source/fmcomp/dbaobjectex.cxx
@@ -80,7 +80,7 @@ namespace svx
             if ( xProp.is() )
                 xProp->getPropertyValue("IsForm") >>= bForm;
         }
-        catch(Exception)
+        catch(const Exception&)
         {}
         AddFormat(getDescriptorFormatId(bForm));
     }
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx
index b456ae6..93e1d81 100644
--- a/xmloff/source/text/txtfldi.cxx
+++ b/xmloff/source/text/txtfldi.cxx
@@ -3765,7 +3765,7 @@ void XMLAnnotationImportContext::EndElement()
                 {
                     GetImportHelper().InsertTextContent( xTextContent );
                 }
-                catch (lang::IllegalArgumentException)
+                catch (const lang::IllegalArgumentException&)
                 {
                     // ignore
                 }


More information about the Libreoffice-commits mailing list