diff options
author | Pierre Ossman <ossman@cendio.se> | 2020-05-30 21:26:49 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2020-05-31 11:08:54 +0200 |
commit | 69dd940686aadc259a8638ae2154981b80b37af3 (patch) | |
tree | bacbbd72b7b56f3df0f8fc8628d62df4c2e64979 /vncviewer | |
parent | b97c84b1d94c8361ee40ef1c7d9c90526729f914 (diff) | |
download | tigervnc-69dd940686aadc259a8638ae2154981b80b37af3.tar.gz tigervnc-69dd940686aadc259a8638ae2154981b80b37af3.zip |
Don't catch exceptions by value
Diffstat (limited to 'vncviewer')
-rw-r--r-- | vncviewer/touch.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/touch.cxx b/vncviewer/touch.cxx index 0c15a117..a2ee3e69 100644 --- a/vncviewer/touch.cxx +++ b/vncviewer/touch.cxx @@ -179,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 (rfb::Exception& e) { vlog.error(_("Failed to create touch handler: %s"), e.str()); exit_vncviewer(e.str()); } |