Skip to content

Commit d3ce7a9

Browse files
const
1 parent 4618ea9 commit d3ce7a9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/room.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ bool Room::trySetOnVideoFrameEventCallback(const std::string& participant_identi
466466

467467
void Room::setOnAudioFrameCallback(const std::string& participant_identity, const std::string& track_name,
468468
AudioFrameCallback callback, const AudioStream::Options& opts) {
469-
bool result = trySetOnAudioFrameCallback(participant_identity, track_name, std::move(callback), opts);
469+
bool const result = trySetOnAudioFrameCallback(participant_identity, track_name, std::move(callback), opts);
470470
if (!result) {
471471
LK_LOG_ERROR("Room::setOnAudioFrameCallback: failed to set callback for participant={} track_name={}",
472472
participant_identity, track_name);
@@ -475,7 +475,7 @@ void Room::setOnAudioFrameCallback(const std::string& participant_identity, cons
475475

476476
void Room::setOnVideoFrameCallback(const std::string& participant_identity, const std::string& track_name,
477477
VideoFrameCallback callback, const VideoStream::Options& opts) {
478-
bool result = trySetOnVideoFrameCallback(participant_identity, track_name, std::move(callback), opts);
478+
bool const result = trySetOnVideoFrameCallback(participant_identity, track_name, std::move(callback), opts);
479479
if (!result) {
480480
LK_LOG_ERROR("Room::setOnVideoFrameCallback: failed to set callback for participant={} track_name={}",
481481
participant_identity, track_name);
@@ -484,7 +484,7 @@ void Room::setOnVideoFrameCallback(const std::string& participant_identity, cons
484484

485485
void Room::setOnVideoFrameEventCallback(const std::string& participant_identity, const std::string& track_name,
486486
VideoFrameEventCallback callback, const VideoStream::Options& opts) {
487-
bool result = trySetOnVideoFrameEventCallback(participant_identity, track_name, std::move(callback), opts);
487+
bool const result = trySetOnVideoFrameEventCallback(participant_identity, track_name, std::move(callback), opts);
488488
if (!result) {
489489
LK_LOG_ERROR("Room::setOnVideoFrameEventCallback: failed to set callback for participant={} track_name={}",
490490
participant_identity, track_name);

0 commit comments

Comments
 (0)