mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Fix clang-tidy performance-move-const-argument warnings (moving const variables)
This commit is contained in:
parent
6196950567
commit
144a3dee3a
9 changed files with 13 additions and 12 deletions
|
@ -52,7 +52,7 @@ void DataBlockList::Delete(DataBlockMap::const_iterator it) {
|
|||
}
|
||||
|
||||
DataBlock DataBlockList::Remove(DataBlockMap::const_iterator it) {
|
||||
auto b = std::move(it->second);
|
||||
auto b = it->second;
|
||||
auto size = b.Size();
|
||||
|
||||
block_map.erase(it);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue