diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-02-13 00:49:41 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-02-13 00:49:41 +0900 |
commit | b167d09c43be6c8b7d30f0d4fb1bf1e86c51b8a7 (patch) | |
tree | e6a46790c6a52a729587e955cdfb24c912e60329 /src | |
parent | 044c03f28ec609b5151e7ab4106a0f0eb86db094 (diff) | |
download | tqt3-b167d09c43be6c8b7d30f0d4fb1bf1e86c51b8a7.tar.gz tqt3-b167d09c43be6c8b7d30f0d4fb1bf1e86c51b8a7.zip |
Add single TQObject root parent for all guarded pointers.r14.1.0
This helps keeping the object root list shorter, speeding up operations
which require lot of TQObject trees. This relates to TDE/tdebase#309.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/qguardedptr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/qguardedptr.cpp b/src/kernel/qguardedptr.cpp index 803e75e18..3ac27e7a7 100644 --- a/src/kernel/qguardedptr.cpp +++ b/src/kernel/qguardedptr.cpp @@ -194,9 +194,10 @@ /* Internal classes */ +static TQObject *__ptrpriv_root_obj = new TQObject(0, "_ptrpriv_root"); TQGuardedPtrPrivate::TQGuardedPtrPrivate( TQObject* o) - : TQObject(0, "_ptrpriv" ), obj( o ) + : TQObject(__ptrpriv_root_obj, "_ptrpriv" ), obj( o ) { if ( obj ) connect( obj, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) ); |