input/qobuz: pass std::string by value to OnQobuzTrackSuccess()
This commit is contained in:
parent
2da6ab2a45
commit
036094799b
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue