summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/mmconfigitem.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-26 23:49:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-27 09:23:46 +0100
commit476c2c340d0ee8bfea3d59ea869975107fe05891 (patch)
tree157f08d239c621b0c924f883073853a94d0eecdb /sw/source/ui/dbui/mmconfigitem.cxx
parent6f976916e2ae5dd83838a7f5de273944eb61e7f2 (diff)
catch by const reference
Diffstat (limited to 'sw/source/ui/dbui/mmconfigitem.cxx')
-rw-r--r--sw/source/ui/dbui/mmconfigitem.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/dbui/mmconfigitem.cxx b/sw/source/ui/dbui/mmconfigitem.cxx
index 12195d0e5687..2c1589ede157 100644
--- a/sw/source/ui/dbui/mmconfigitem.cxx
+++ b/sw/source/ui/dbui/mmconfigitem.cxx
@@ -928,7 +928,7 @@ Reference< XResultSet> SwMailMergeConfigItem::GetResultSet() const
xRowProperties->setPropertyValue(C2U("ApplyFilter"), makeAny(m_pImpl->sFilter.getLength()>0));
xRowProperties->setPropertyValue(C2U("Filter"), makeAny(m_pImpl->sFilter));
}
- catch(Exception&)
+ catch (const Exception&)
{
OSL_FAIL("exception caught in xResultSet->SetFilter()");
}
@@ -938,7 +938,7 @@ Reference< XResultSet> SwMailMergeConfigItem::GetResultSet() const
m_pImpl->nResultSetCursorPos = 1;
}
}
- catch(Exception& )
+ catch (const Exception&)
{
OSL_FAIL("exception caught in: SwMailMergeConfigItem::GetResultSet() ");
}
@@ -976,7 +976,7 @@ void SwMailMergeConfigItem::SetFilter(::rtl::OUString& rFilter)
uno::Reference<XRowSet> xRowSet( m_pImpl->xResultSet, UNO_QUERY_THROW );
xRowSet->execute();
}
- catch(Exception&)
+ catch (const Exception&)
{
OSL_FAIL("exception caught in SwMailMergeConfigItem::SetFilter()");
}
@@ -1011,7 +1011,7 @@ sal_Int32 SwMailMergeConfigItem::MoveResultSet(sal_Int32 nTarget)
m_pImpl->nResultSetCursorPos = m_pImpl->xResultSet->getRow();
}
}
- catch(Exception&)
+ catch (const Exception&)
{
}
}
@@ -1031,7 +1031,7 @@ bool SwMailMergeConfigItem::IsResultSetFirstLast(bool& bIsFirst, bool& bIsLast)
bIsLast = m_pImpl->xResultSet->isLast();
bRet = true;
}
- catch(Exception&)
+ catch (const Exception&)
{
}
}