mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
Remove dependency on boost::noncopyable
This commit is contained in:
parent
7e6e508d06
commit
a60549e3f4
@ -112,6 +112,20 @@ void Closure::Cleanup() {
|
||||
deleteLater();
|
||||
}
|
||||
|
||||
Closure::Closure(const Closure &)
|
||||
: QObject()
|
||||
{
|
||||
// This should not be called.
|
||||
Q_ASSERT( false );
|
||||
}
|
||||
|
||||
Closure &Closure::operator=(const Closure &)
|
||||
{
|
||||
// This should not be called.
|
||||
Q_ASSERT( false );
|
||||
return *this;
|
||||
}
|
||||
|
||||
} // namespace _detail
|
||||
|
||||
_detail::Closure* NewClosure(
|
||||
|
@ -30,8 +30,6 @@
|
||||
#include <QPointer>
|
||||
#include <QSharedPointer>
|
||||
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
namespace _detail {
|
||||
|
||||
class DLLEXPORT ClosureArgumentWrapper {
|
||||
@ -54,7 +52,7 @@ class ClosureArgument : public ClosureArgumentWrapper {
|
||||
T data_;
|
||||
};
|
||||
|
||||
class DLLEXPORT Closure : public QObject, boost::noncopyable {
|
||||
class DLLEXPORT Closure : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
@ -86,6 +84,9 @@ class DLLEXPORT Closure : public QObject, boost::noncopyable {
|
||||
void Cleanup();
|
||||
|
||||
private:
|
||||
Closure( const Closure& );
|
||||
Closure& operator=( const Closure& );
|
||||
|
||||
void Connect(QObject* sender, const char* signal);
|
||||
|
||||
QMetaMethod slot_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user