input/qobuz: pass std::string by value to OnQobuzTrackSuccess()

This commit is contained in:
Max Kellermann 2018-01-21 19:58:21 +01:00
parent 2da6ab2a45
commit 036094799b
2 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ private:
void OnQobuzSession() noexcept override; void OnQobuzSession() noexcept override;
/* virtual methods from QobuzTrackHandler */ /* 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; void OnQobuzTrackError(std::exception_ptr error) noexcept override;
}; };
@ -100,7 +100,7 @@ QobuzInputStream::OnQobuzSession() noexcept
} }
void void
QobuzInputStream::OnQobuzTrackSuccess(std::string &&url) noexcept QobuzInputStream::OnQobuzTrackSuccess(std::string url) noexcept
{ {
const std::lock_guard<Mutex> protect(mutex); const std::lock_guard<Mutex> protect(mutex);

View File

@ -38,7 +38,7 @@ class QobuzTrackHandler
: public boost::intrusive::list_base_hook<boost::intrusive::link_mode<boost::intrusive::safe_link>> : public boost::intrusive::list_base_hook<boost::intrusive::link_mode<boost::intrusive::safe_link>>
{ {
public: 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; virtual void OnQobuzTrackError(std::exception_ptr error) noexcept = 0;
}; };