summaryrefslogtreecommitdiff
path: root/stoc/source/servicemanager
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-17 08:21:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 09:27:59 +0200
commite1eb7cb04a4c30cec238ab0f54d41a6cdc3299c1 (patch)
tree1c54b75238c4607a2b86f160c69b0287e350e573 /stoc/source/servicemanager
parente080acf2211af3f2b55cf59f04272a9a43188abe (diff)
loplugin:logexceptionnicely in starmath..svgio
Change-Id: I356e574e28338f6fddc6932b4e41a461d851406d Reviewed-on: https://gerrit.libreoffice.org/74141 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc/source/servicemanager')
-rw-r--r--stoc/source/servicemanager/servicemanager.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx
index 9d6f0e0d0c0a..5f38ec917c71 100644
--- a/stoc/source/servicemanager/servicemanager.cxx
+++ b/stoc/source/servicemanager/servicemanager.cxx
@@ -24,6 +24,7 @@
#include <osl/diagnose.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
+#include <tools/diagnose_ex.h>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/weakref.hxx>
@@ -619,9 +620,9 @@ void OServiceManager::disposing()
if( xComp.is() )
xComp->dispose();
}
- catch (const RuntimeException & exc)
+ catch (const RuntimeException &)
{
- SAL_INFO("stoc", "RuntimeException occurred upon disposing factory: " << exc);
+ TOOLS_INFO_EXCEPTION("stoc", "RuntimeException occurred upon disposing factory:");
}
}
@@ -807,9 +808,9 @@ Reference< XInterface > OServiceManager::createInstanceWithContext(
}
}
}
- catch (const lang::DisposedException & exc)
+ catch (const lang::DisposedException &)
{
- SAL_INFO("stoc", "DisposedException occurred: " << exc);
+ TOOLS_INFO_EXCEPTION("stoc", "");
}
}
@@ -861,9 +862,9 @@ Reference< XInterface > OServiceManager::createInstanceWithArgumentsAndContext(
}
}
}
- catch (const lang::DisposedException & exc)
+ catch (const lang::DisposedException &)
{
- SAL_INFO("stoc", "DisposedException occurred: " << exc);
+ TOOLS_INFO_EXCEPTION("stoc", "DisposedException occurred:");
}
}