summaryrefslogtreecommitdiff
path: root/sw/source/core/tox/toxhlp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/tox/toxhlp.cxx')
-rw-r--r--sw/source/core/tox/toxhlp.cxx25
1 files changed, 13 insertions, 12 deletions
diff --git a/sw/source/core/tox/toxhlp.cxx b/sw/source/core/tox/toxhlp.cxx
index 7bdd2d3d0130..1c383a757ae0 100644
--- a/sw/source/core/tox/toxhlp.cxx
+++ b/sw/source/core/tox/toxhlp.cxx
@@ -21,6 +21,7 @@
#include <com/sun/star/i18n/IndexEntrySupplier.hpp>
#include <toxwrap.hxx>
#include <sal/log.hxx>
+#include <tools/diagnose_ex.h>
using namespace ::com::sun::star;
@@ -31,9 +32,9 @@ IndexEntrySupplierWrapper::IndexEntrySupplierWrapper()
try {
xIES = i18n::IndexEntrySupplier::create(xContext);
}
- catch (const uno::Exception& e)
+ catch (const uno::Exception&)
{
- SAL_WARN( "sw.core", "IndexEntrySupplierWrapper: Caught " << e );
+ TOOLS_WARN_EXCEPTION( "sw.core", "IndexEntrySupplierWrapper" );
}
}
@@ -49,9 +50,9 @@ OUString IndexEntrySupplierWrapper::GetIndexKey( const OUString& rText,
try {
sRet = xIES->getIndexKey( rText, rTextReading, rLocale );
}
- catch (const uno::Exception& e)
+ catch (const uno::Exception&)
{
- SAL_WARN( "sw.core", "getIndexKey: Caught " << e );
+ TOOLS_WARN_EXCEPTION( "sw.core", "getIndexKey" );
}
return sRet;
}
@@ -62,9 +63,9 @@ OUString IndexEntrySupplierWrapper::GetFollowingText( bool bMorePages ) const
try {
sRet = xIES->getIndexFollowPageWord( bMorePages, aLcl );
}
- catch (const uno::Exception& e)
+ catch (const uno::Exception&)
{
- SAL_WARN( "sw.core", "getIndexFollowPageWord: Caught " << e );
+ TOOLS_WARN_EXCEPTION( "sw.core", "getIndexFollowPageWord" );
}
return sRet;
}
@@ -76,9 +77,9 @@ css::uno::Sequence< OUString > IndexEntrySupplierWrapper::GetAlgorithmList( cons
try {
sRet = xIES->getAlgorithmList( rLcl );
}
- catch (const uno::Exception& e)
+ catch (const uno::Exception&)
{
- SAL_WARN( "sw.core", "getAlgorithmList: Caught " << e );
+ TOOLS_WARN_EXCEPTION( "sw.core", "getAlgorithmList" );
}
return sRet;
}
@@ -91,9 +92,9 @@ bool IndexEntrySupplierWrapper::LoadAlgorithm(
try {
bRet = xIES->loadAlgorithm( rLcl, sSortAlgorithm, nOptions );
}
- catch (const uno::Exception& e)
+ catch (const uno::Exception&)
{
- SAL_WARN( "sw.core", "loadAlgorithm: Caught " << e );
+ TOOLS_WARN_EXCEPTION( "sw.core", "loadAlgorithm" );
}
return bRet;
}
@@ -109,9 +110,9 @@ sal_Int16 IndexEntrySupplierWrapper::CompareIndexEntry(
nRet = xIES->compareIndexEntry( rText1, rTextReading1, rLocale1,
rText2, rTextReading2, rLocale2 );
}
- catch (const uno::Exception& e)
+ catch (const uno::Exception&)
{
- SAL_WARN( "sw.core", "compareIndexEntry: Caught " << e );
+ TOOLS_WARN_EXCEPTION( "sw.core", "compareIndexEntry" );
}
return nRet;
}