Fix clang-tidy performance-unnecessary-copy-initialization warnings

This commit is contained in:
Tim Wojtulewicz 2025-04-25 16:34:11 -07:00
parent 909413838c
commit cb8c35748a
15 changed files with 26 additions and 28 deletions

View file

@ -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;