mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Fix clang-tidy performance-noexcept-move-constructor warnings in headers
This commit is contained in:
parent
a136159ceb
commit
e7b89f81e9
3 changed files with 6 additions and 6 deletions
|
@ -44,7 +44,7 @@ public:
|
|||
memcpy(block, other.block, size);
|
||||
}
|
||||
|
||||
DataBlock(DataBlock&& other) {
|
||||
DataBlock(DataBlock&& other) noexcept {
|
||||
seq = other.seq;
|
||||
upper = other.upper;
|
||||
block = other.block;
|
||||
|
@ -64,7 +64,7 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
DataBlock& operator=(DataBlock&& other) {
|
||||
DataBlock& operator=(DataBlock&& other) noexcept {
|
||||
if ( this == &other )
|
||||
return *this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue