summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-06-12 10:46:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-06-13 10:20:21 +0900
commit984ea06ed6ce702d98fcfe08dc353d58f3f0bcbc (patch)
tree893843544b600da845693ea58db568d6c2bf23bf
parentdf5ce1b1690a251b194d61c2ecf3114d1d022cfc (diff)
downloadtqt3-984ea06ed6ce702d98fcfe08dc353d58f3f0bcbc.tar.gz
tqt3-984ea06ed6ce702d98fcfe08dc353d58f3f0bcbc.zip
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 b167d09c43be6c8b7d30f0d4fb1bf1e86c51b8a7. This resolves issue TDE/tde#128. (cherry picked from commit fb1f3d64451e8cc405b5db572e2c506564a05680)
-rw-r--r--src/kernel/qguardedptr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/qguardedptr.cpp b/src/kernel/qguardedptr.cpp
index 3ac27e7a7..803e75e18 100644
--- a/src/kernel/qguardedptr.cpp
+++ b/src/kernel/qguardedptr.cpp
@@ -194,10 +194,9 @@
/* Internal classes */
-static TQObject *__ptrpriv_root_obj = new TQObject(0, "_ptrpriv_root");
TQGuardedPtrPrivate::TQGuardedPtrPrivate( TQObject* o)
- : TQObject(__ptrpriv_root_obj, "_ptrpriv" ), obj( o )
+ : TQObject(0, "_ptrpriv" ), obj( o )
{
if ( obj )
connect( obj, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );