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
093ca5d4
Commit
093ca5d4
authored
Dec 18, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage/Interface: add "noexcept"
parent
1d24dd30
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
+11
-11
CompositeStorage.cxx
src/storage/CompositeStorage.cxx
+2
-2
MemoryDirectoryReader.cxx
src/storage/MemoryDirectoryReader.cxx
+1
-1
MemoryDirectoryReader.hxx
src/storage/MemoryDirectoryReader.hxx
+1
-1
StorageInterface.hxx
src/storage/StorageInterface.hxx
+3
-3
LocalStorage.cxx
src/storage/plugins/LocalStorage.cxx
+2
-2
SmbclientStorage.cxx
src/storage/plugins/SmbclientStorage.cxx
+2
-2
No files found.
src/storage/CompositeStorage.cxx
View file @
093ca5d4
...
...
@@ -53,12 +53,12 @@ public:
}
/* virtual methods from class StorageDirectoryReader */
const
char
*
Read
()
override
;
const
char
*
Read
()
noexcept
override
;
StorageFileInfo
GetInfo
(
bool
follow
)
override
;
};
const
char
*
CompositeDirectoryReader
::
Read
()
CompositeDirectoryReader
::
Read
()
noexcept
{
if
(
other
!=
nullptr
)
{
const
char
*
name
=
other
->
Read
();
...
...
src/storage/MemoryDirectoryReader.cxx
View file @
093ca5d4
...
...
@@ -23,7 +23,7 @@
#include <assert.h>
const
char
*
MemoryStorageDirectoryReader
::
Read
()
MemoryStorageDirectoryReader
::
Read
()
noexcept
{
if
(
first
)
first
=
false
;
...
...
src/storage/MemoryDirectoryReader.hxx
View file @
093ca5d4
...
...
@@ -60,7 +60,7 @@ public:
:
entries
(
std
::
move
(
_entries
)),
first
(
true
)
{}
/* virtual methods from class StorageDirectoryReader */
const
char
*
Read
()
override
;
const
char
*
Read
()
noexcept
override
;
StorageFileInfo
GetInfo
(
bool
follow
)
override
;
};
...
...
src/storage/StorageInterface.hxx
View file @
093ca5d4
...
...
@@ -32,9 +32,9 @@ class StorageDirectoryReader {
public
:
StorageDirectoryReader
()
=
default
;
StorageDirectoryReader
(
const
StorageDirectoryReader
&
)
=
delete
;
virtual
~
StorageDirectoryReader
()
{}
virtual
~
StorageDirectoryReader
()
noexcept
{}
virtual
const
char
*
Read
()
=
0
;
virtual
const
char
*
Read
()
noexcept
=
0
;
/**
* Throws #std::runtime_error on error.
...
...
@@ -46,7 +46,7 @@ class Storage {
public
:
Storage
()
=
default
;
Storage
(
const
Storage
&
)
=
delete
;
virtual
~
Storage
()
{}
virtual
~
Storage
()
noexcept
{}
/**
* Throws #std::runtime_error on error.
...
...
src/storage/plugins/LocalStorage.cxx
View file @
093ca5d4
...
...
@@ -41,7 +41,7 @@ public:
:
base_fs
(
std
::
move
(
_base_fs
)),
reader
(
base_fs
)
{}
/* virtual methods from class StorageDirectoryReader */
const
char
*
Read
()
override
;
const
char
*
Read
()
noexcept
override
;
StorageFileInfo
GetInfo
(
bool
follow
)
override
;
};
...
...
@@ -156,7 +156,7 @@ SkipNameFS(PathTraitsFS::const_pointer_type name_fs) noexcept
}
const
char
*
LocalDirectoryReader
::
Read
()
LocalDirectoryReader
::
Read
()
noexcept
{
while
(
reader
.
ReadEntry
())
{
const
Path
name_fs
=
reader
.
GetEntry
();
...
...
src/storage/plugins/SmbclientStorage.cxx
View file @
093ca5d4
...
...
@@ -45,7 +45,7 @@ public:
virtual
~
SmbclientDirectoryReader
();
/* virtual methods from class StorageDirectoryReader */
const
char
*
Read
()
override
;
const
char
*
Read
()
noexcept
override
;
StorageFileInfo
GetInfo
(
bool
follow
)
override
;
};
...
...
@@ -158,7 +158,7 @@ SmbclientDirectoryReader::~SmbclientDirectoryReader()
}
const
char
*
SmbclientDirectoryReader
::
Read
()
SmbclientDirectoryReader
::
Read
()
noexcept
{
const
std
::
lock_guard
<
Mutex
>
protect
(
smbclient_mutex
);
...
...
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