mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2026-07-18 00:45:51 +00:00
KASM-6984 Use modern C++ idioms and fix member initialization
This commit is contained in:
parent
7db59bdec9
commit
04e60f1671
3 changed files with 4 additions and 4 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue