1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

Use Q_DISABLE_COPY

This commit is contained in:
Uwe L. Korn
2014-08-21 16:51:12 +01:00
parent 7fab0866e0
commit 5c3a94b4db
2 changed files with 1 additions and 16 deletions

View File

@@ -112,20 +112,6 @@ 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

@@ -84,8 +84,7 @@ class DLLEXPORT Closure : public QObject {
void Cleanup();
private:
Closure( const Closure& );
Closure& operator=( const Closure& );
Q_DISABLE_COPY(Closure)
void Connect(QObject* sender, const char* signal);