mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
Use Q_DISABLE_COPY
This commit is contained in:
@@ -112,20 +112,6 @@ 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(
|
||||||
|
@@ -84,8 +84,7 @@ class DLLEXPORT Closure : public QObject {
|
|||||||
void Cleanup();
|
void Cleanup();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Closure( const Closure& );
|
Q_DISABLE_COPY(Closure)
|
||||||
Closure& operator=( const Closure& );
|
|
||||||
|
|
||||||
void Connect(QObject* sender, const char* signal);
|
void Connect(QObject* sender, const char* signal);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user