diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-04-21 02:20:32 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-06-24 14:18:05 +0200 |
commit | 7aace8ea6da9c58782e74b3bfc5f8928b06d6853 (patch) | |
tree | 868e68e0e67924bb4f40134d17edf9a72aa85975 /common/rfb/SSecurityTLS.cxx | |
parent | 9bbacc70ab3af6bd652a4c6ff5bea1f7ea307eee (diff) | |
download | tigervnc-7aace8ea6da9c58782e74b3bfc5f8928b06d6853.tar.gz tigervnc-7aace8ea6da9c58782e74b3bfc5f8928b06d6853.zip |
Avoid redundant arguments
Remove redundant arguments where the method already has access to the
relevant variable as an object attribute.
Diffstat (limited to 'common/rfb/SSecurityTLS.cxx')
-rw-r--r-- | common/rfb/SSecurityTLS.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/SSecurityTLS.cxx b/common/rfb/SSecurityTLS.cxx index 0b8f0ff2..c55f1be8 100644 --- a/common/rfb/SSecurityTLS.cxx +++ b/common/rfb/SSecurityTLS.cxx @@ -151,7 +151,7 @@ bool SSecurityTLS::processMsg() throw AuthFailureException("gnutls_set_default_priority failed"); try { - setParams(session); + setParams(); } catch(...) { os->writeU8(0); @@ -190,7 +190,7 @@ bool SSecurityTLS::processMsg() return true; } -void SSecurityTLS::setParams(gnutls_session_t session) +void SSecurityTLS::setParams() { static const char kx_anon_priority[] = ":+ANON-ECDH:+ANON-DH"; |