From 9e9083cbedc0e98a03a0da370dd49375dc1cdc91 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Sep 2024 07:31:15 +0200 Subject: Subclass exceptions from std::exception Make sure our exceptions are part of the standard exception class hierarchy. --- vncviewer/vncviewer.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'vncviewer/vncviewer.h') diff --git a/vncviewer/vncviewer.h b/vncviewer/vncviewer.h index f39a5776..57fd845d 100644 --- a/vncviewer/vncviewer.h +++ b/vncviewer/vncviewer.h @@ -21,15 +21,11 @@ #define VNCSERVERNAMELEN 256 -namespace rdr { - struct Exception; -}; - void abort_vncviewer(const char *error, ...) __attribute__((__format__ (__printf__, 1, 2))); void abort_connection(const char *error, ...) __attribute__((__format__ (__printf__, 1, 2))); -void abort_connection_with_unexpected_error(const rdr::Exception &); +void abort_connection_with_unexpected_error(const std::exception &); void disconnect(); bool should_disconnect(); -- cgit v1.2.3