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
b8890726
Commit
b8890726
authored
3 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/alsa/AllowedFormat: use std::string_view
parent
0f843326
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
AllowedFormat.cxx
src/lib/alsa/AllowedFormat.cxx
+1
-1
AllowedFormat.hxx
src/lib/alsa/AllowedFormat.hxx
+1
-1
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+1
-1
No files found.
src/lib/alsa/AllowedFormat.cxx
View file @
b8890726
...
@@ -54,7 +54,7 @@ AllowedFormat::AllowedFormat(StringView s)
...
@@ -54,7 +54,7 @@ AllowedFormat::AllowedFormat(StringView s)
}
}
std
::
forward_list
<
AllowedFormat
>
std
::
forward_list
<
AllowedFormat
>
AllowedFormat
::
ParseList
(
StringV
iew
s
)
AllowedFormat
::
ParseList
(
std
::
string_v
iew
s
)
{
{
std
::
forward_list
<
AllowedFormat
>
list
;
std
::
forward_list
<
AllowedFormat
>
list
;
auto
tail
=
list
.
before_begin
();
auto
tail
=
list
.
before_begin
();
...
...
This diff is collapsed.
Click to expand it.
src/lib/alsa/AllowedFormat.hxx
View file @
b8890726
...
@@ -52,7 +52,7 @@ struct AllowedFormat {
...
@@ -52,7 +52,7 @@ struct AllowedFormat {
*
*
* Throws std::runtime_error on error.
* Throws std::runtime_error on error.
*/
*/
static
std
::
forward_list
<
AllowedFormat
>
ParseList
(
StringV
iew
s
);
static
std
::
forward_list
<
AllowedFormat
>
ParseList
(
std
::
string_v
iew
s
);
};
};
std
::
string
std
::
string
...
...
This diff is collapsed.
Click to expand it.
src/output/plugins/AlsaOutputPlugin.cxx
View file @
b8890726
...
@@ -471,7 +471,7 @@ AlsaOutput::SetAttribute(std::string &&name, std::string &&value)
...
@@ -471,7 +471,7 @@ AlsaOutput::SetAttribute(std::string &&name, std::string &&value)
{
{
if
(
name
==
"allowed_formats"
)
{
if
(
name
==
"allowed_formats"
)
{
const
std
::
lock_guard
<
Mutex
>
lock
(
attributes_mutex
);
const
std
::
lock_guard
<
Mutex
>
lock
(
attributes_mutex
);
allowed_formats
=
Alsa
::
AllowedFormat
::
ParseList
(
{
value
.
data
(),
value
.
length
()}
);
allowed_formats
=
Alsa
::
AllowedFormat
::
ParseList
(
value
);
#ifdef ENABLE_DSD
#ifdef ENABLE_DSD
}
else
if
(
name
==
"dop"
)
{
}
else
if
(
name
==
"dop"
)
{
const
std
::
lock_guard
<
Mutex
>
lock
(
attributes_mutex
);
const
std
::
lock_guard
<
Mutex
>
lock
(
attributes_mutex
);
...
...
This diff is collapsed.
Click to expand it.
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