1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 16:14:40 +02:00

Add comment to prevent others from doing the same mistake

This commit is contained in:
Uwe L. Korn
2013-06-26 12:03:24 +02:00
committed by Michael Zanetti
parent 7daebc655a
commit 04e5b338c4

View File

@@ -66,6 +66,7 @@ public:
void insert( const QString& key, const QSharedPointer<T>& value )
{
// Do not pass the QSharedPointer to the closure as this will prevent the object from being destroyed.
_detail::Closure* cl = NewClosure( value.data(), SIGNAL( destroyed( QObject* ) ), &m_private, SLOT( remove( QString ) ), key );
cl->setAutoDelete( true );
m_hash.insert( key, value.toWeakRef() );