chore: initialize class vars using the order class define, initilizer list, constructor

This commit is contained in:
sithlord48
2025-05-22 18:22:20 -04:00
committed by Chris Rizzitello
parent 593e53370a
commit 475b895755
83 changed files with 249 additions and 465 deletions

View File

@ -46,33 +46,10 @@ Server::Server(
)
: m_primaryClient(primaryClient),
m_active(primaryClient),
m_seqNum(0),
m_xDelta(0),
m_yDelta(0),
m_xDelta2(0),
m_yDelta2(0),
m_config(&config),
m_inputFilter(config.getInputFilter()),
m_activeSaver(nullptr),
m_switchDir(kNoDirection),
m_switchScreen(nullptr),
m_switchWaitDelay(0.0),
m_switchWaitTimer(nullptr),
m_switchTwoTapDelay(0.0),
m_switchTwoTapEngaged(false),
m_switchTwoTapArmed(false),
m_switchTwoTapZone(3),
m_switchNeedsShift(false),
m_switchNeedsControl(false),
m_switchNeedsAlt(false),
m_relativeMoves(false),
m_keyboardBroadcasting(false),
m_lockedToScreen(false),
m_screen(screen),
m_events(events),
m_disableLockToScreen(false),
m_enableClipboard(true),
m_maximumClipboardSize(INT_MAX),
m_args(args)
{
// must have a primary client and it must have a canonical name
@ -2078,15 +2055,6 @@ void Server::forceLeaveClient(const BaseClientProxy *client)
m_primaryClient->reconfigure(getActivePrimarySides());
}
//
// Server::ClipboardInfo
//
Server::ClipboardInfo::ClipboardInfo() : m_clipboard(), m_clipboardData(), m_clipboardOwner(), m_clipboardSeqNum(0)
{
// do nothing
}
//
// Server::LockCursorToScreenInfo
//