diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-09-03 07:31:15 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-11-06 21:06:27 +0100 |
commit | 9e9083cbedc0e98a03a0da370dd49375dc1cdc91 (patch) | |
tree | 3b094052cd0d4941e8a554ad3b04ec19c0d3f0c3 /tests/perf/encperf.cxx | |
parent | f25de739ea359c2843a596457bcd22a28175b7a4 (diff) | |
download | tigervnc-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 'tests/perf/encperf.cxx')
-rw-r--r-- | tests/perf/encperf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/perf/encperf.cxx b/tests/perf/encperf.cxx index 610fc4ec..63794340 100644 --- a/tests/perf/encperf.cxx +++ b/tests/perf/encperf.cxx @@ -372,7 +372,7 @@ static struct stats runTest(const char *fn) try { cc = new CConn(fn); - } catch (rdr::Exception& e) { + } catch (std::exception& e) { fprintf(stderr, "Failed to open rfb file: %s\n", e.what()); exit(1); } @@ -381,7 +381,7 @@ static struct stats runTest(const char *fn) while (true) cc->processMsg(); } catch (rdr::EndOfStream& e) { - } catch (rdr::Exception& e) { + } catch (std::exception& e) { fprintf(stderr, "Failed to run rfb file: %s\n", e.what()); exit(1); } |