output/Plugin: remove 'Error&' parameters, use C++ exceptions only
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include "Control.hxx"
|
||||
#include "Idle.hxx"
|
||||
#include "DetachedSong.hxx"
|
||||
#include "util/Error.hxx"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -171,15 +170,6 @@ PlayerControl::SetError(PlayerError type, std::exception_ptr &&_error)
|
||||
error = std::move(_error);
|
||||
}
|
||||
|
||||
void
|
||||
PlayerControl::SetError(PlayerError type, Error &&_error)
|
||||
{
|
||||
assert(type != PlayerError::NONE);
|
||||
assert(_error.IsDefined());
|
||||
|
||||
SetError(type, std::make_exception_ptr(std::move(_error)));
|
||||
}
|
||||
|
||||
void
|
||||
PlayerControl::LockClearError()
|
||||
{
|
||||
|
@@ -355,9 +355,7 @@ public:
|
||||
* Caller must lock the object.
|
||||
*
|
||||
* @param type the error type; must not be #PlayerError::NONE
|
||||
* @param error detailed error information; must be defined.
|
||||
*/
|
||||
void SetError(PlayerError type, Error &&error);
|
||||
void SetError(PlayerError type, std::exception_ptr &&_error);
|
||||
|
||||
/**
|
||||
|
@@ -33,7 +33,6 @@
|
||||
#include "tag/Tag.hxx"
|
||||
#include "Idle.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "util/Error.hxx"
|
||||
#include "thread/Name.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
|
Reference in New Issue
Block a user