From c48424a3ebb91b44695a075a750d7d700436624b Mon Sep 17 00:00:00 2001 From: yuyoyuppe Date: Mon, 12 Oct 2020 19:31:53 +0300 Subject: [PATCH] style fix --- .../VideoConferenceModule.cpp | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/src/modules/videoconference/VideoConferenceModule/VideoConferenceModule.cpp b/src/modules/videoconference/VideoConferenceModule/VideoConferenceModule.cpp index e6d0aa199f..9fed1d08b2 100644 --- a/src/modules/videoconference/VideoConferenceModule/VideoConferenceModule.cpp +++ b/src/modules/videoconference/VideoConferenceModule/VideoConferenceModule.cpp @@ -52,12 +52,8 @@ void VideoConferenceModule::reverseMicrophoneMute() if (muted) { Trace::MicrophoneMuted(); - toolbar.setMicrophoneMute(true); - } - else - { - toolbar.setMicrophoneMute(false); } + toolbar.setMicrophoneMute(muted); } bool VideoConferenceModule::getMicrophoneMuteState() @@ -67,27 +63,23 @@ bool VideoConferenceModule::getMicrophoneMuteState() void VideoConferenceModule::reverseVirtualCameraMuteState() { - bool camera_muted = false; + bool muted = false; if (!instance->_settingsUpdateChannel.has_value()) { return; } - instance->_settingsUpdateChannel->access([&camera_muted](auto settingsMemory) { + instance->_settingsUpdateChannel->access([&muted](auto settingsMemory) { auto settings = reinterpret_cast(settingsMemory._data); settings->useOverlayImage = !settings->useOverlayImage; - camera_muted = settings->useOverlayImage; + muted = settings->useOverlayImage; }); - if (camera_muted) + if (muted) { Trace::CameraMuted(); - toolbar.setCameraMute(true); - } - else - { - toolbar.setCameraMute(false); } + toolbar.setCameraMute(muted); } bool VideoConferenceModule::getVirtualCameraMuteState()