clang-tidy: use std::move where applicable (#2605)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Yoitsu
2021-04-10 15:34:40 +03:00
committed by GitHub
parent b0fee78f2b
commit 00ccdbc781
20 changed files with 39 additions and 38 deletions
+3 -3
View File
@@ -550,7 +550,7 @@ bool ChannelView::getEnableScrollingToBottom() const
void ChannelView::setOverrideFlags(boost::optional<MessageElementFlags> value)
{
this->overrideFlags_ = value;
this->overrideFlags_ = std::move(value);
}
const boost::optional<MessageElementFlags> &ChannelView::getOverrideFlags()
@@ -647,7 +647,7 @@ void ChannelView::setChannel(ChannelPtr underlyingChannel)
this->channelConnections_.push_back(this->channel_->messageAppended.connect(
[this](MessagePtr &message,
boost::optional<MessageFlags> overridingFlags) {
this->messageAppended(message, overridingFlags);
this->messageAppended(message, std::move(overridingFlags));
}));
this->channelConnections_.push_back(
@@ -753,7 +753,7 @@ ChannelPtr ChannelView::sourceChannel() const
void ChannelView::setSourceChannel(ChannelPtr sourceChannel)
{
this->sourceChannel_ = sourceChannel;
this->sourceChannel_ = std::move(sourceChannel);
}
bool ChannelView::hasSourceChannel() const