diff --git a/src/model/friendmessagedispatcher.cpp b/src/model/friendmessagedispatcher.cpp index c89416b69d..84f1658702 100644 --- a/src/model/friendmessagedispatcher.cpp +++ b/src/model/friendmessagedispatcher.cpp @@ -13,7 +13,7 @@ FriendMessageDispatcher::FriendMessageDispatcher(Friend& f_, MessageProcessor pr : f(f_) , coreExtPacketAllocator(coreExtPacketAllocator_) , messageSender(messageSender_) - , processor(std::move(processor_)) + , processor(processor_) { connect(&f, &Friend::onlineOfflineChanged, this, &FriendMessageDispatcher::onFriendOnlineOfflineChanged); diff --git a/src/platform/camera/v4l2.cpp b/src/platform/camera/v4l2.cpp index 26b7329a99..7c6eff65be 100644 --- a/src/platform/camera/v4l2.cpp +++ b/src/platform/camera/v4l2.cpp @@ -157,7 +157,7 @@ QVector v4l2::getDeviceModes(QString devName) for (float rate : rates) { mode.FPS = rate; if (!modes.contains(mode)) { - modes.append(std::move(mode)); + modes.append(mode); } } vfse.index++; diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index baf11bee97..08009127a8 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -1167,8 +1167,7 @@ void Widget::addFriend(uint32_t friendId, const ToxPk& friendPk) auto messageProcessor = MessageProcessor(*sharedMessageProcessorParams); auto friendMessageDispatcher = - std::make_shared(*newfriend, std::move(messageProcessor), *core, - *core->getExt()); + std::make_shared(*newfriend, messageProcessor, *core, *core->getExt()); // Note: We do not have to connect the message dispatcher signals since // ChatHistory hooks them up in a very specific order @@ -2142,8 +2141,7 @@ Group* Widget::createGroup(uint32_t groupnumber, const GroupId& groupId) auto widget = new GroupWidget(chatroom, compact, settings, style); auto messageProcessor = MessageProcessor(*sharedMessageProcessorParams); auto messageDispatcher = - std::make_shared(*newgroup, std::move(messageProcessor), *core, - *core, settings); + std::make_shared(*newgroup, messageProcessor, *core, *core, settings); auto history = profile.getHistory(); // Note: We do not have to connect the message dispatcher signals since