mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Dict: Mark iterator move operator/constructors as noexcept
This commit is contained in:
parent
02cc4fd1b8
commit
f2ae1da764
1 changed files with 3 additions and 3 deletions
|
@ -220,7 +220,7 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
DictIterator(DictIterator&& that)
|
||||
DictIterator(DictIterator&& that) noexcept
|
||||
{
|
||||
if ( this == &that )
|
||||
return;
|
||||
|
@ -238,7 +238,7 @@ public:
|
|||
that.dict = nullptr;
|
||||
}
|
||||
|
||||
DictIterator& operator=(DictIterator&& that)
|
||||
DictIterator& operator=(DictIterator&& that) noexcept
|
||||
{
|
||||
if ( this == &that )
|
||||
return *this;
|
||||
|
@ -358,7 +358,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
RobustDictIterator(RobustDictIterator&& other) : curr(nullptr)
|
||||
RobustDictIterator(RobustDictIterator&& other) noexcept : curr(nullptr)
|
||||
{
|
||||
dict = nullptr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue