Revert "Add single TQObject root parent for all guarded pointers."

Commit b167d09c was functionally incorrect and is causing issues on
selected distributions.
This reverts commit b167d09c43.
This resolves issue TDE/tde#128.

(cherry picked from commit fb1f3d6445)
r14.1.x
Michele Calgaro 1 year ago
parent df5ce1b169
commit 984ea06ed6
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -194,10 +194,9 @@
/* Internal classes */ /* Internal classes */
static TQObject *__ptrpriv_root_obj = new TQObject(0, "_ptrpriv_root");
TQGuardedPtrPrivate::TQGuardedPtrPrivate( TQObject* o) TQGuardedPtrPrivate::TQGuardedPtrPrivate( TQObject* o)
: TQObject(__ptrpriv_root_obj, "_ptrpriv" ), obj( o ) : TQObject(0, "_ptrpriv" ), obj( o )
{ {
if ( obj ) if ( obj )
connect( obj, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) ); connect( obj, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );

Loading…
Cancel
Save