Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
732f6aaa
Commit
732f6aaa
authored
Aug 25, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
neighbor/Explorer: add "noexcept"
parent
dd422c7b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
Explorer.hxx
src/neighbor/Explorer.hxx
+2
-2
SmbclientNeighborPlugin.cxx
src/neighbor/plugins/SmbclientNeighborPlugin.cxx
+4
-4
UpnpNeighborPlugin.cxx
src/neighbor/plugins/UpnpNeighborPlugin.cxx
+4
-4
No files found.
src/neighbor/Explorer.hxx
View file @
732f6aaa
...
...
@@ -61,12 +61,12 @@ public:
/**
* Stop exploring.
*/
virtual
void
Close
()
=
0
;
virtual
void
Close
()
noexcept
=
0
;
/**
* Obtain a list of currently known neighbors.
*/
virtual
List
GetList
()
const
=
0
;
virtual
List
GetList
()
const
noexcept
=
0
;
};
#endif
src/neighbor/plugins/SmbclientNeighborPlugin.cxx
View file @
732f6aaa
...
...
@@ -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
);
/*
...
...
src/neighbor/plugins/UpnpNeighborPlugin.cxx
View file @
732f6aaa
...
...
@@ -64,8 +64,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
:
/* virtual methods from class UPnPDiscoveryListener */
...
...
@@ -91,14 +91,14 @@ UpnpNeighborExplorer::Open()
}
void
UpnpNeighborExplorer
::
Close
()
UpnpNeighborExplorer
::
Close
()
noexcept
{
delete
discovery
;
UpnpClientGlobalFinish
();
}
NeighborExplorer
::
List
UpnpNeighborExplorer
::
GetList
()
const
UpnpNeighborExplorer
::
GetList
()
const
noexcept
{
std
::
vector
<
ContentDirectoryService
>
tmp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment