mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Remove dependency on boost::noncopyable
This commit is contained in:
@@ -112,6 +112,20 @@ void Closure::Cleanup() {
|
|||||||
deleteLater();
|
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
|
} // namespace _detail
|
||||||
|
|
||||||
_detail::Closure* NewClosure(
|
_detail::Closure* NewClosure(
|
||||||
|
@@ -30,8 +30,6 @@
|
|||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
|
|
||||||
#include <boost/noncopyable.hpp>
|
|
||||||
|
|
||||||
namespace _detail {
|
namespace _detail {
|
||||||
|
|
||||||
class DLLEXPORT ClosureArgumentWrapper {
|
class DLLEXPORT ClosureArgumentWrapper {
|
||||||
@@ -54,7 +52,7 @@ class ClosureArgument : public ClosureArgumentWrapper {
|
|||||||
T data_;
|
T data_;
|
||||||
};
|
};
|
||||||
|
|
||||||
class DLLEXPORT Closure : public QObject, boost::noncopyable {
|
class DLLEXPORT Closure : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -86,6 +84,9 @@ class DLLEXPORT Closure : public QObject, boost::noncopyable {
|
|||||||
void Cleanup();
|
void Cleanup();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Closure( const Closure& );
|
||||||
|
Closure& operator=( const Closure& );
|
||||||
|
|
||||||
void Connect(QObject* sender, const char* signal);
|
void Connect(QObject* sender, const char* signal);
|
||||||
|
|
||||||
QMetaMethod slot_;
|
QMetaMethod slot_;
|
||||||
|
Reference in New Issue
Block a user