neighbor/Explorer: add "noexcept"

This commit is contained in:
Max Kellermann
2017-08-25 10:08:48 +02:00
parent dd422c7b8b
commit 732f6aaa30
3 changed files with 10 additions and 10 deletions

View File

@@ -74,8 +74,8 @@ public:
/* virtual methods from class NeighborExplorer */
void Open() override;
void Close() override;
List GetList() const override;
void Close() noexcept override;
List GetList() const noexcept override;
private:
void Run();
@@ -90,7 +90,7 @@ SmbclientNeighborExplorer::Open()
}
void
SmbclientNeighborExplorer::Close()
SmbclientNeighborExplorer::Close() noexcept
{
mutex.lock();
quit = true;
@@ -101,7 +101,7 @@ SmbclientNeighborExplorer::Close()
}
NeighborExplorer::List
SmbclientNeighborExplorer::GetList() const
SmbclientNeighborExplorer::GetList() const noexcept
{
const std::lock_guard<Mutex> protect(mutex);
/*