mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Removed move for trivially-copyable type and added noexcept for move constructor
This commit is contained in:
parent
042157efca
commit
ee131eefd8
@ -410,7 +410,7 @@ Packet LocalConnection::receivePacket()
|
||||
{
|
||||
if (state->profile_info)
|
||||
{
|
||||
packet.profile_info = std::move(*state->profile_info);
|
||||
packet.profile_info = *state->profile_info;
|
||||
state->profile_info.reset();
|
||||
}
|
||||
next_packet_type.reset();
|
||||
|
@ -219,7 +219,7 @@ private:
|
||||
struct FileSegmentsHolder : private boost::noncopyable
|
||||
{
|
||||
explicit FileSegmentsHolder(FileSegments && file_segments_) : file_segments(std::move(file_segments_)) {}
|
||||
FileSegmentsHolder(FileSegmentsHolder && other) : file_segments(std::move(other.file_segments)) {}
|
||||
FileSegmentsHolder(FileSegmentsHolder && other) noexcept : file_segments(std::move(other.file_segments)) {}
|
||||
|
||||
~FileSegmentsHolder();
|
||||
|
||||
|
@ -37,7 +37,7 @@ BlockIO & BlockIO::operator= (BlockIO && rhs) noexcept
|
||||
finish_callback = std::move(rhs.finish_callback);
|
||||
exception_callback = std::move(rhs.exception_callback);
|
||||
|
||||
null_format = std::move(rhs.null_format);
|
||||
null_format = rhs.null_format;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user