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
03609479
Commit
03609479
authored
Jan 21, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/qobuz: pass std::string by value to OnQobuzTrackSuccess()
parent
2da6ab2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
QobuzInputPlugin.cxx
src/input/plugins/QobuzInputPlugin.cxx
+2
-2
QobuzTrackRequest.hxx
src/input/plugins/QobuzTrackRequest.hxx
+1
-1
No files found.
src/input/plugins/QobuzInputPlugin.cxx
View file @
03609479
...
...
@@ -76,7 +76,7 @@ private:
void
OnQobuzSession
()
noexcept
override
;
/* virtual methods from QobuzTrackHandler */
void
OnQobuzTrackSuccess
(
std
::
string
&&
url
)
noexcept
override
;
void
OnQobuzTrackSuccess
(
std
::
string
url
)
noexcept
override
;
void
OnQobuzTrackError
(
std
::
exception_ptr
error
)
noexcept
override
;
};
...
...
@@ -100,7 +100,7 @@ QobuzInputStream::OnQobuzSession() noexcept
}
void
QobuzInputStream
::
OnQobuzTrackSuccess
(
std
::
string
&&
url
)
noexcept
QobuzInputStream
::
OnQobuzTrackSuccess
(
std
::
string
url
)
noexcept
{
const
std
::
lock_guard
<
Mutex
>
protect
(
mutex
);
...
...
src/input/plugins/QobuzTrackRequest.hxx
View file @
03609479
...
...
@@ -38,7 +38,7 @@ class QobuzTrackHandler
:
public
boost
::
intrusive
::
list_base_hook
<
boost
::
intrusive
::
link_mode
<
boost
::
intrusive
::
safe_link
>>
{
public
:
virtual
void
OnQobuzTrackSuccess
(
std
::
string
&&
url
)
noexcept
=
0
;
virtual
void
OnQobuzTrackSuccess
(
std
::
string
url
)
noexcept
=
0
;
virtual
void
OnQobuzTrackError
(
std
::
exception_ptr
error
)
noexcept
=
0
;
};
...
...
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