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:
@@ -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(
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user