diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-11-26 10:47:03 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-11-26 10:47:03 +0100 |
commit | d9c84cc96351ffdcb927e246b8f9c7cd0324f0ed (patch) | |
tree | 98b2d2e1cf5670e55596c436463b1e3de8cf2399 | |
parent | 0947e097b1ef9feb4250eae071ac6ad7ffa7f14d (diff) | |
download | tigervnc-d9c84cc96351ffdcb927e246b8f9c7cd0324f0ed.tar.gz tigervnc-d9c84cc96351ffdcb927e246b8f9c7cd0324f0ed.zip |
Also mark tls_error with noexcept
Overlooked this special exception in the previous commit.
-rw-r--r-- | common/rdr/TLSException.cxx | 2 | ||||
-rw-r--r-- | common/rdr/TLSException.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/rdr/TLSException.cxx b/common/rdr/TLSException.cxx index ccff6090..ee4f587b 100644 --- a/common/rdr/TLSException.cxx +++ b/common/rdr/TLSException.cxx @@ -35,7 +35,7 @@ using namespace rdr; #ifdef HAVE_GNUTLS -tls_error::tls_error(const char* s, int err_) +tls_error::tls_error(const char* s, int err_) noexcept : std::runtime_error(rfb::format("%s: %s (%d)", s, gnutls_strerror(err_), err_)), err(err_) diff --git a/common/rdr/TLSException.h b/common/rdr/TLSException.h index cfa73f69..62b090ba 100644 --- a/common/rdr/TLSException.h +++ b/common/rdr/TLSException.h @@ -28,7 +28,7 @@ namespace rdr { class tls_error : public std::runtime_error { public: int err; - tls_error(const char* s, int err_); + tls_error(const char* s, int err_) noexcept; }; } |