mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Fix clang-tidy performance-unnecessary-copy-initialization warnings
This commit is contained in:
parent
909413838c
commit
cb8c35748a
15 changed files with 26 additions and 28 deletions
|
@ -15,7 +15,7 @@ Key::Key(const void* session, size_t size, size_t type, bool copy) : size(size),
|
|||
copied = copy;
|
||||
}
|
||||
|
||||
Key::Key(Key&& rhs) {
|
||||
Key::Key(Key&& rhs) noexcept {
|
||||
data = rhs.data;
|
||||
size = rhs.size;
|
||||
copied = rhs.copied;
|
||||
|
@ -25,7 +25,7 @@ Key::Key(Key&& rhs) {
|
|||
rhs.copied = false;
|
||||
}
|
||||
|
||||
Key& Key::operator=(Key&& rhs) {
|
||||
Key& Key::operator=(Key&& rhs) noexcept {
|
||||
if ( this != &rhs ) {
|
||||
data = rhs.data;
|
||||
size = rhs.size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue