aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/touch.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-09-03 07:31:15 +0200
committerPierre Ossman <ossman@cendio.se>2024-11-06 21:06:27 +0100
commit9e9083cbedc0e98a03a0da370dd49375dc1cdc91 (patch)
tree3b094052cd0d4941e8a554ad3b04ec19c0d3f0c3 /vncviewer/touch.cxx
parentf25de739ea359c2843a596457bcd22a28175b7a4 (diff)
downloadtigervnc-9e9083cbedc0e98a03a0da370dd49375dc1cdc91.tar.gz
tigervnc-9e9083cbedc0e98a03a0da370dd49375dc1cdc91.zip
Subclass exceptions from std::exception
Make sure our exceptions are part of the standard exception class hierarchy.
Diffstat (limited to 'vncviewer/touch.cxx')
-rw-r--r--vncviewer/touch.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vncviewer/touch.cxx b/vncviewer/touch.cxx
index 0b2e4bc6..572e726e 100644
--- a/vncviewer/touch.cxx
+++ b/vncviewer/touch.cxx
@@ -36,7 +36,6 @@
#include <FL/Fl.H>
#include <FL/x.H>
-#include <rfb/Exception.h>
#include <rfb/LogWriter.h>
#include "i18n.h"
@@ -180,7 +179,7 @@ static int handleTouchEvent(void *event, void* /*data*/)
if (msg->message == WM_PAINT && handlers.count(msg->hwnd) == 0) {
try {
handlers[msg->hwnd] = new Win32TouchHandler(msg->hwnd);
- } catch (rfb::Exception& e) {
+ } catch (std::exception& e) {
vlog.error(_("Failed to create touch handler: %s"), e.what());
abort_vncviewer(_("Failed to create touch handler: %s"), e.what());
}