From 7d902940508decad933c19bc97e5409873ab5189 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 11 May 2016 16:10:39 +0200 Subject: convert EXCEPTION_ to scoped enum - simplify VCLExceptionSignal_impl - drop "minor" part of error code, nobody passes it in, and nobody checks it - rename Display to UserInterface, to prevent -Werror=shadow Change-Id: I503fd8a50ded30d59c30fb388796f6b1a0c058de Reviewed-on: https://gerrit.libreoffice.org/24892 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- vcl/workben/outdevgrind.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'vcl/workben') diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx index 11b312533705..e6ff4f48cbff 100644 --- a/vcl/workben/outdevgrind.cxx +++ b/vcl/workben/outdevgrind.cxx @@ -57,7 +57,7 @@ class GrindApp : public Application { public: virtual int Main() override; - virtual void Exception( sal_uInt16 nError ) override; + virtual void Exception( ExceptionCategory nCategory ) override; }; class TestWindow : public Dialog @@ -669,13 +669,14 @@ void TestWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangle&) fflush(stdout); } -void GrindApp::Exception( sal_uInt16 nError ) +void GrindApp::Exception( ExceptionCategory nCategory ) { - switch( nError & EXCEPTION_MAJORTYPE ) + switch( nCategory ) { - case EXCEPTION_RESOURCENOTLOADED: + case ExceptionCategory::ResourceNotLoaded: Abort( "Error: could not load language resources.\nPlease check your installation.\n" ); break; + default: break; } } -- cgit