diff --git a/src/network/room_member.h b/src/network/room_member.h index 3410abac15..4c26c35b29 100644 --- a/src/network/room_member.h +++ b/src/network/room_member.h @@ -263,7 +263,7 @@ private: std::unique_ptr room_member_impl; }; -static const char* GetStateStr(const RoomMember::State& s) { +inline const char* GetStateStr(const RoomMember::State& s) { switch (s) { case RoomMember::State::Idle: return "Idle"; @@ -277,7 +277,7 @@ static const char* GetStateStr(const RoomMember::State& s) { return "Unknown"; } -static const char* GetErrorStr(const RoomMember::Error& e) { +inline const char* GetErrorStr(const RoomMember::Error& e) { switch (e) { case RoomMember::Error::LostConnection: return "LostConnection";