KASM-6984 Use modern C++ idioms and fix member initialization

This commit is contained in:
El 2025-04-10 14:10:53 +05:00
parent 7db59bdec9
commit 04e60f1671
No known key found for this signature in database
GPG key ID: EB3F4C9EA29CDE59
3 changed files with 4 additions and 4 deletions

View file

@ -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),

View file

@ -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';

View file

@ -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;