diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-29 16:21:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-04 15:18:00 +0200 |
commit | 2c05d758b2b62c9df413e2514fb3cd233d0f3ec7 (patch) | |
tree | e0a23d3da6fb17ae97d18957fc14f4a4a8de2d3f /vcl/source | |
parent | a3088b1e72ef17babe3d3664c610afd02cfe0891 (diff) |
add << operator for css::uno::Exception
Change-Id: Ia23dafd07133779144965682df3b7125a3214235
Reviewed-on: https://gerrit.libreoffice.org/43046
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/session.cxx | 3 | ||||
-rw-r--r-- | vcl/source/app/svdata.cxx | 4 | ||||
-rw-r--r-- | vcl/source/app/svmain.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/gdimtf.cxx | 3 | ||||
-rw-r--r-- | vcl/source/gdi/vectorgraphicdata.cxx | 2 | ||||
-rw-r--r-- | vcl/source/image/ImplImageTree.cxx | 6 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/window.cxx | 8 |
8 files changed, 12 insertions, 18 deletions
diff --git a/vcl/source/app/session.cxx b/vcl/source/app/session.cxx index 23c60d7f8bb9..834ed57b2902 100644 --- a/vcl/source/app/session.cxx +++ b/vcl/source/app/session.cxx @@ -23,7 +23,6 @@ #include <cppuhelper/basemutex.hxx> #include <cppuhelper/compbase.hxx> - #include <vcl/svapp.hxx> #include <factory.hxx> @@ -377,7 +376,7 @@ void VCLSession::disposing() { listener.m_xListener->disposing(src); SAL_INFO("vcl.se.debug", " call Listener disposing"); } catch (css::uno::RuntimeException & e) { - SAL_WARN("vcl.se", "ignoring RuntimeException " << e.Message); + SAL_WARN("vcl.se", "ignoring " << e); } } } diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx index d5cc3fbac380..fb6d6726c419 100644 --- a/vcl/source/app/svdata.cxx +++ b/vcl/source/app/svdata.cxx @@ -154,7 +154,7 @@ vcl::Window *ImplGetDefaultContextWindow() } catch (const css::uno::Exception& e) { - SAL_WARN("vcl", "unable to create Default Window: " << e.Message); + SAL_WARN("vcl", "unable to create Default Window: " << e); } } } @@ -260,7 +260,7 @@ bool ImplInitAccessBridge() } catch (css::uno::DeploymentException & e) { SAL_WARN( "vcl", - "got no IAccessible2 bridge" << e.Message); + "got no IAccessible2 bridge" << e); return false; } } diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx index 581fb820c96c..d35f32ba646f 100644 --- a/vcl/source/app/svmain.cxx +++ b/vcl/source/app/svmain.cxx @@ -337,7 +337,7 @@ bool InitVCL() } catch (const uno::Exception &e) { - SAL_INFO("vcl.app", "Unable to get ui language: '" << e.Message); + SAL_INFO("vcl.app", "Unable to get ui language: '" << e); } pSVData->mpDefInst->AfterAppInit(); diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index f0b9ce1fbbbb..0490b4ae63e2 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -436,8 +436,7 @@ bool GDIMetaFile::ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, S catch (const uno::Exception& e) { // ignore errors, no way of reporting them here - SAL_WARN("vcl.gdi", - "GDIMetaFile::ImplPlayWithRenderer: exception: " << e.Message); + SAL_WARN("vcl.gdi", "GDIMetaFile::ImplPlayWithRenderer: " << e); } return false; diff --git a/vcl/source/gdi/vectorgraphicdata.cxx b/vcl/source/gdi/vectorgraphicdata.cxx index 3bcb8fb7351a..d5d66f80c440 100644 --- a/vcl/source/gdi/vectorgraphicdata.cxx +++ b/vcl/source/gdi/vectorgraphicdata.cxx @@ -82,7 +82,7 @@ BitmapEx convertPrimitive2DSequenceToBitmapEx( } catch (const uno::Exception& e) { - SAL_WARN("vcl", "Got no graphic::XPrimitive2DRenderer! : " << e.Message); + SAL_WARN("vcl", "Got no graphic::XPrimitive2DRenderer! : " << e); } catch (const std::exception& e) { diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx index dd3d91855c0d..8b874868a32e 100644 --- a/vcl/source/image/ImplImageTree.cxx +++ b/vcl/source/image/ImplImageTree.cxx @@ -246,7 +246,7 @@ OUString ImplImageTree::getImageUrl(OUString const & rName, OUString const & rSt } catch (const css::uno::Exception & e) { - SAL_INFO("vcl", "exception " << e.Message); + SAL_INFO("vcl", e); } aStyle = fallbackStyle(aStyle); @@ -362,7 +362,7 @@ bool ImplImageTree::doLoadImage(ImageRequestParameters& rParameters) } catch (const css::uno::Exception& e) { - SAL_INFO("vcl", "ImplImageTree::doLoadImage exception " << e.Message); + SAL_INFO("vcl", "ImplImageTree::doLoadImage " << e); } if (bFound) @@ -538,7 +538,7 @@ bool ImplImageTree::checkPathAccess() throw; } catch (const css::uno::Exception & e) { - SAL_INFO("vcl", "ImplImageTree::zip file location exception " << e.Message << " for " << rIconSet.maURL); + SAL_INFO("vcl", "ImplImageTree::zip file location " << e << " for " << rIconSet.maURL); return false; } return rNameAccess.is(); diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index d2bdc7f94146..abfce54a64dd 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -147,7 +147,7 @@ VclBuilder::VclBuilder(vcl::Window *pParent, const OUString& sUIDir, const OUStr } catch (const css::uno::Exception &rExcept) { - SAL_WARN("vcl.layout", "Unable to read .ui file: " << rExcept.Message); + SAL_WARN("vcl.layout", "Unable to read .ui file: " << rExcept); CrashReporter::AddKeyValue("VclBuilderException", "Unable to read .ui file: " + rExcept.Message); throw; } diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 47153bce8a4b..0baa83b10176 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3222,9 +3222,7 @@ Reference< XClipboard > Window::GetClipboard() } catch (DeploymentException & e) { - SAL_WARN( - "vcl.window", - "ignoring DeploymentException \"" << e.Message << "\""); + SAL_WARN("vcl.window", "ignoring " << e); } } @@ -3265,9 +3263,7 @@ Reference< XClipboard > Window::GetPrimarySelection() } catch (RuntimeException & e) { - SAL_WARN( - "vcl.window", - "ignoring RuntimeException \"" << e.Message << "\""); + SAL_WARN("vcl.window", "ignoring " << e); } } |