summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-11 16:10:39 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-13 06:29:34 +0000
commit7d902940508decad933c19bc97e5409873ab5189 (patch)
tree18fd3ed9420a4127db377bcd2201a3627ef72135 /vcl/workben
parentc2f912b51efa458ba9bd1601a8676ab119aca1bd (diff)
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 <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/outdevgrind.cxx9
1 files changed, 5 insertions, 4 deletions
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;
}
}