Merge pull request #4898 from zhaowenlan1779/warning-room-member

network/room_member: Silence -Wswitch warning
This commit is contained in:
Pengfei Zhu 2019-08-21 09:14:28 +08:00 committed by GitHub
commit 8fa6be5b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,6 +265,8 @@ private:
inline const char* GetStateStr(const RoomMember::State& s) { inline const char* GetStateStr(const RoomMember::State& s) {
switch (s) { switch (s) {
case RoomMember::State::Uninitialized:
return "Uninitialized";
case RoomMember::State::Idle: case RoomMember::State::Idle:
return "Idle"; return "Idle";
case RoomMember::State::Joining: case RoomMember::State::Joining: