neighbor/Explorer: add "noexcept"
This commit is contained in:
parent
dd422c7b8b
commit
732f6aaa30
@ -61,12 +61,12 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Stop exploring.
|
* Stop exploring.
|
||||||
*/
|
*/
|
||||||
virtual void Close() = 0;
|
virtual void Close() noexcept = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtain a list of currently known neighbors.
|
* Obtain a list of currently known neighbors.
|
||||||
*/
|
*/
|
||||||
virtual List GetList() const = 0;
|
virtual List GetList() const noexcept = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -74,8 +74,8 @@ public:
|
|||||||
|
|
||||||
/* virtual methods from class NeighborExplorer */
|
/* virtual methods from class NeighborExplorer */
|
||||||
void Open() override;
|
void Open() override;
|
||||||
void Close() override;
|
void Close() noexcept override;
|
||||||
List GetList() const override;
|
List GetList() const noexcept override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Run();
|
void Run();
|
||||||
@ -90,7 +90,7 @@ SmbclientNeighborExplorer::Open()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SmbclientNeighborExplorer::Close()
|
SmbclientNeighborExplorer::Close() noexcept
|
||||||
{
|
{
|
||||||
mutex.lock();
|
mutex.lock();
|
||||||
quit = true;
|
quit = true;
|
||||||
@ -101,7 +101,7 @@ SmbclientNeighborExplorer::Close()
|
|||||||
}
|
}
|
||||||
|
|
||||||
NeighborExplorer::List
|
NeighborExplorer::List
|
||||||
SmbclientNeighborExplorer::GetList() const
|
SmbclientNeighborExplorer::GetList() const noexcept
|
||||||
{
|
{
|
||||||
const std::lock_guard<Mutex> protect(mutex);
|
const std::lock_guard<Mutex> protect(mutex);
|
||||||
/*
|
/*
|
||||||
|
@ -64,8 +64,8 @@ public:
|
|||||||
|
|
||||||
/* virtual methods from class NeighborExplorer */
|
/* virtual methods from class NeighborExplorer */
|
||||||
void Open() override;
|
void Open() override;
|
||||||
void Close() override;
|
void Close() noexcept override;
|
||||||
List GetList() const override;
|
List GetList() const noexcept override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/* virtual methods from class UPnPDiscoveryListener */
|
/* virtual methods from class UPnPDiscoveryListener */
|
||||||
@ -91,14 +91,14 @@ UpnpNeighborExplorer::Open()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
UpnpNeighborExplorer::Close()
|
UpnpNeighborExplorer::Close() noexcept
|
||||||
{
|
{
|
||||||
delete discovery;
|
delete discovery;
|
||||||
UpnpClientGlobalFinish();
|
UpnpClientGlobalFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
NeighborExplorer::List
|
NeighborExplorer::List
|
||||||
UpnpNeighborExplorer::GetList() const
|
UpnpNeighborExplorer::GetList() const noexcept
|
||||||
{
|
{
|
||||||
std::vector<ContentDirectoryService> tmp;
|
std::vector<ContentDirectoryService> tmp;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user