input/tidal: pass std::string by value
Don't keep any references to the owner, as the handler method may delete the owner.
This commit is contained in:
@@ -40,7 +40,7 @@ class TidalTrackHandler
|
||||
: public boost::intrusive::list_base_hook<boost::intrusive::link_mode<boost::intrusive::safe_link>>
|
||||
{
|
||||
public:
|
||||
virtual void OnTidalTrackSuccess(std::string &&url) noexcept = 0;
|
||||
virtual void OnTidalTrackSuccess(std::string url) noexcept = 0;
|
||||
virtual void OnTidalTrackError(std::exception_ptr error) noexcept = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user