mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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
|
@ -68,7 +68,7 @@ public:
|
||||||
entries[i] = b.entries[i];
|
entries[i] = b.entries[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
List(List&& b) {
|
List(List&& b) noexcept {
|
||||||
entries = b.entries;
|
entries = b.entries;
|
||||||
num_entries = b.num_entries;
|
num_entries = b.num_entries;
|
||||||
max_entries = b.max_entries;
|
max_entries = b.max_entries;
|
||||||
|
@ -108,7 +108,7 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
List& operator=(List&& b) {
|
List& operator=(List&& b) noexcept {
|
||||||
if ( this == &b )
|
if ( this == &b )
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ public:
|
||||||
memcpy(block, other.block, size);
|
memcpy(block, other.block, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
DataBlock(DataBlock&& other) {
|
DataBlock(DataBlock&& other) noexcept {
|
||||||
seq = other.seq;
|
seq = other.seq;
|
||||||
upper = other.upper;
|
upper = other.upper;
|
||||||
block = other.block;
|
block = other.block;
|
||||||
|
@ -64,7 +64,7 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
DataBlock& operator=(DataBlock&& other) {
|
DataBlock& operator=(DataBlock&& other) noexcept {
|
||||||
if ( this == &other )
|
if ( this == &other )
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@ public:
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Configuration(Configuration&& c) {
|
Configuration(Configuration&& c) noexcept {
|
||||||
zeek_version = std::move(c.zeek_version);
|
zeek_version = std::move(c.zeek_version);
|
||||||
|
|
||||||
name = std::move(c.name);
|
name = std::move(c.name);
|
||||||
|
@ -152,7 +152,7 @@ public:
|
||||||
version = c.version;
|
version = c.version;
|
||||||
}
|
}
|
||||||
|
|
||||||
Configuration& operator=(Configuration&& c) {
|
Configuration& operator=(Configuration&& c) noexcept {
|
||||||
zeek_version = std::move(c.zeek_version);
|
zeek_version = std::move(c.zeek_version);
|
||||||
|
|
||||||
name = std::move(c.name);
|
name = std::move(c.name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue