[Libreoffice-commits] .: sd/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Mar 31 08:38:23 PDT 2011


 sd/source/ui/toolpanel/controls/DocumentHelper.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 47315dc95869c8d0388c9e8e43735320f734afe3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Mar 31 16:38:16 2011 +0100

    catch exceptions by const reference

diff --git a/sd/source/ui/toolpanel/controls/DocumentHelper.cxx b/sd/source/ui/toolpanel/controls/DocumentHelper.cxx
index 802f1d9..ff42e82 100644
--- a/sd/source/ui/toolpanel/controls/DocumentHelper.cxx
+++ b/sd/source/ui/toolpanel/controls/DocumentHelper.cxx
@@ -245,17 +245,17 @@ SdPage* DocumentHelper::AddMasterPage (
             // master page.
             rTargetDocument.InsertMasterPage (pClonedMasterPage);
         }
-        catch (uno::Exception& rException)
+        catch(const uno::Exception&)
         {
             pClonedMasterPage = NULL;
             DBG_UNHANDLED_EXCEPTION();
         }
-        catch (::std::exception rException)
+        catch(const ::std::exception&)
         {
             pClonedMasterPage = NULL;
             OSL_TRACE ("caught general exception");
         }
-        catch (...)
+        catch(...)
         {
             pClonedMasterPage = NULL;
             OSL_TRACE ("caught general exception");


More information about the Libreoffice-commits mailing list