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
3c145c0f
Commit
3c145c0f
authored
Apr 21, 2020
by
Rosen Penev
Committed by
Max Kellermann
Apr 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[clang-tidy] add nodiscard
Found with modernize-use-nodiscard Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
55b8f2c5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
UpnpDatabasePlugin.cxx
src/db/plugins/upnp/UpnpDatabasePlugin.cxx
+1
-1
CurlStorage.cxx
src/storage/plugins/CurlStorage.cxx
+2
-2
LocalStorage.cxx
src/storage/plugins/LocalStorage.cxx
+4
-4
NfsStorage.cxx
src/storage/plugins/NfsStorage.cxx
+2
-2
SmbclientStorage.cxx
src/storage/plugins/SmbclientStorage.cxx
+2
-2
No files found.
src/db/plugins/upnp/UpnpDatabasePlugin.cxx
View file @
3c145c0f
...
...
@@ -88,7 +88,7 @@ public:
void
Open
()
override
;
void
Close
()
noexcept
override
;
const
LightSong
*
GetSong
(
std
::
string_view
uri_utf8
)
const
override
;
[[
nodiscard
]]
const
LightSong
*
GetSong
(
std
::
string_view
uri_utf8
)
const
override
;
void
ReturnSong
(
const
LightSong
*
song
)
const
noexcept
override
;
void
Visit
(
const
DatabaseSelection
&
selection
,
...
...
src/storage/plugins/CurlStorage.cxx
View file @
3c145c0f
...
...
@@ -61,9 +61,9 @@ public:
std
::
unique_ptr
<
StorageDirectoryReader
>
OpenDirectory
(
std
::
string_view
uri_utf8
)
override
;
std
::
string
MapUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
[[
nodiscard
]]
std
::
string
MapUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
std
::
string_view
MapToRelativeUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
[[
nodiscard
]]
std
::
string_view
MapToRelativeUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
};
std
::
string
...
...
src/storage/plugins/LocalStorage.cxx
View file @
3c145c0f
...
...
@@ -60,14 +60,14 @@ public:
std
::
unique_ptr
<
StorageDirectoryReader
>
OpenDirectory
(
std
::
string_view
uri_utf8
)
override
;
std
::
string
MapUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
[[
nodiscard
]]
std
::
string
MapUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
AllocatedPath
MapFS
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
[[
nodiscard
]]
AllocatedPath
MapFS
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
std
::
string_view
MapToRelativeUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
[[
nodiscard
]]
std
::
string_view
MapToRelativeUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
private
:
AllocatedPath
MapFSOrThrow
(
std
::
string_view
uri_utf8
)
const
;
[[
nodiscard
]]
AllocatedPath
MapFSOrThrow
(
std
::
string_view
uri_utf8
)
const
;
};
static
StorageFileInfo
...
...
src/storage/plugins/NfsStorage.cxx
View file @
3c145c0f
...
...
@@ -90,9 +90,9 @@ public:
std
::
unique_ptr
<
StorageDirectoryReader
>
OpenDirectory
(
std
::
string_view
uri_utf8
)
override
;
std
::
string
MapUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
[[
nodiscard
]]
std
::
string
MapUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
std
::
string_view
MapToRelativeUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
[[
nodiscard
]]
std
::
string_view
MapToRelativeUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
/* virtual methods from NfsLease */
void
OnNfsConnectionReady
()
noexcept
final
{
...
...
src/storage/plugins/SmbclientStorage.cxx
View file @
3c145c0f
...
...
@@ -68,9 +68,9 @@ public:
std
::
unique_ptr
<
StorageDirectoryReader
>
OpenDirectory
(
std
::
string_view
uri_utf8
)
override
;
std
::
string
MapUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
[[
nodiscard
]]
std
::
string
MapUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
std
::
string_view
MapToRelativeUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
[[
nodiscard
]]
std
::
string_view
MapToRelativeUTF8
(
std
::
string_view
uri_utf8
)
const
noexcept
override
;
};
std
::
string
...
...
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