2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Use in-class initializers for bitfields.

This commit is contained in:
John Preston
2021-11-10 11:53:01 +04:00
parent fe025e3c44
commit f13e28a9c5
5 changed files with 21 additions and 36 deletions

View File

@@ -126,12 +126,7 @@ MembersRow::MembersRow(
not_null<MembersRowDelegate*> delegate,
not_null<PeerData*> participantPeer)
: PeerListRow(participantPeer)
, _delegate(delegate)
, _sounding(false)
, _speaking(false)
, _raisedHandStatus(false)
, _skipLevelUpdate(false)
, _mutedByMe(false) {
, _delegate(delegate) {
refreshStatus();
_aboutText = participantPeer->about();
}

View File

@@ -210,11 +210,11 @@ private:
crl::time _speakingLastTime = 0;
uint64 _raisedHandRating = 0;
int _volume = Group::kDefaultVolume;
bool _sounding : 1;
bool _speaking : 1;
bool _raisedHandStatus : 1;
bool _skipLevelUpdate : 1;
bool _mutedByMe : 1;
bool _sounding : 1 = false;
bool _speaking : 1 = false;
bool _raisedHandStatus : 1 = false;
bool _skipLevelUpdate : 1 = false;
bool _mutedByMe : 1 = false;
};