summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2020-05-30 21:26:49 +0200
committerPierre Ossman <ossman@cendio.se>2020-05-31 11:08:54 +0200
commit69dd940686aadc259a8638ae2154981b80b37af3 (patch)
treebacbbd72b7b56f3df0f8fc8628d62df4c2e64979 /vncviewer
parentb97c84b1d94c8361ee40ef1c7d9c90526729f914 (diff)
downloadtigervnc-69dd940686aadc259a8638ae2154981b80b37af3.tar.gz
tigervnc-69dd940686aadc259a8638ae2154981b80b37af3.zip
Don't catch exceptions by value
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/touch.cxx2
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());
}