Commit 03609479 authored by Max Kellermann's avatar Max Kellermann

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

parent 2da6ab2a
...@@ -76,7 +76,7 @@ private: ...@@ -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 ...@@ -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);
......
...@@ -38,7 +38,7 @@ class QobuzTrackHandler ...@@ -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;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment