diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index c470de7..ed36bdc 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -62,7 +62,7 @@ VNCSConnectionST::VNCSConnectionST(VNCServerST* server_, network::Socket *s, losslessTimer(this), kbdLogTimer(this), binclipTimer(this), server(server_), updates(false), updateRenderedCursor(false), removeRenderedCursor(false), - continuousUpdates(false), encodeManager(this, &server_->encCache), + continuousUpdates(false), encodeManager(this, &VNCServerST::encCache), needsPermCheck(false), pointerEventTime(0), clientHasCursor(false), accessRights(AccessDefault), startTime(time(0)), frameTracking(false), diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx index 35d5e5c..4106125 100644 --- a/common/rfb/VNCServerST.cxx +++ b/common/rfb/VNCServerST.cxx @@ -129,7 +129,7 @@ static void parseRegionPart(const bool percents, rdr::U16 &pcdest, int &dest, *inptr = ptr; } -VNCServerST::VNCServerST(const char* name_, SDesktop* desktop_, bool a) +VNCServerST::VNCServerST(const char* name_, SDesktop* desktop_) : blHosts(&blacklist), desktop(desktop_), desktopStarted(false), blockCounter(0), pb(0), blackedpb(0), ledState(ledUnknown), name(strDup(name_)), pointerClient(0), clipboardClient(0), @@ -201,7 +201,7 @@ VNCServerST::VNCServerST(const char* name_, SDesktop* desktop_, bool a) } } - DLPRegion.enabled = 1; + DLPRegion.enabled = true; } kasmpasswdpath[0] = '\0'; diff --git a/common/rfb/VNCServerST.h b/common/rfb/VNCServerST.h index 721e028..fee2517 100644 --- a/common/rfb/VNCServerST.h +++ b/common/rfb/VNCServerST.h @@ -148,7 +148,7 @@ namespace rfb { // the connection. enum queryResult { ACCEPT, REJECT, PENDING }; struct QueryConnectionHandler { - virtual ~QueryConnectionHandler() {} + virtual ~QueryConnectionHandler() = default; virtual queryResult queryConnection(network::Socket* sock, const char* userName, char** reason) = 0;