diff options
author | Pierre Ossman <ossman@cendio.se> | 2021-06-14 09:43:10 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2021-06-14 09:43:10 +0200 |
commit | a29fe72102907f4f770ad9d9a7eef7619226d355 (patch) | |
tree | b3f97282a4ab3ebdbf9cabb9ae123937536da68d /common/rfb | |
parent | 0517ae84eba859d33ac148e37dfc03f2b398e4f6 (diff) | |
download | tigervnc-a29fe72102907f4f770ad9d9a7eef7619226d355.tar.gz tigervnc-a29fe72102907f4f770ad9d9a7eef7619226d355.zip |
Avoid some variable aliasing
Diffstat (limited to 'common/rfb')
-rw-r--r-- | common/rfb/CSecurity.h | 2 | ||||
-rw-r--r-- | common/rfb/SSecurity.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/CSecurity.h b/common/rfb/CSecurity.h index 2e703c6d..12d1829b 100644 --- a/common/rfb/CSecurity.h +++ b/common/rfb/CSecurity.h @@ -44,7 +44,7 @@ namespace rfb { class CConnection; class CSecurity { public: - CSecurity(CConnection* cc) { this->cc = cc; } + CSecurity(CConnection* cc_) : cc(cc_) {} virtual ~CSecurity() {} virtual bool processMsg() = 0; virtual int getType() const = 0; diff --git a/common/rfb/SSecurity.h b/common/rfb/SSecurity.h index 8ae7902c..cef2027f 100644 --- a/common/rfb/SSecurity.h +++ b/common/rfb/SSecurity.h @@ -52,7 +52,7 @@ namespace rfb { class SSecurity { public: - SSecurity(SConnection* sc) { this->sc = sc; } + SSecurity(SConnection* sc_) : sc(sc_) {} virtual ~SSecurity() {} virtual bool processMsg() = 0; virtual int getType() const = 0; |