summaryrefslogtreecommitdiffstats
path: root/src
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-12 16:39:20 +0900
commitfb1f3d64451e8cc405b5db572e2c506564a05680 (patch)
treeff74b10f6ef0ac72fa88a1e779d3f08efe14ca1f /src
parenta75445b4c3c2fe24d377625acd8bb058b2bd971a (diff)
downloadtqt3-fb1f3d64451e8cc405b5db572e2c506564a05680.tar.gz
tqt3-fb1f3d64451e8cc405b5db572e2c506564a05680.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.
Diffstat (limited to 'src')
-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() ) );