1
0
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:
Uwe L. Korn 2014-08-21 11:58:54 +01:00
parent 7e6e508d06
commit a60549e3f4
2 changed files with 18 additions and 3 deletions

View File

@ -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(

View File

@ -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_;