From 9e057c68deed9a54f1526f2645f7927efcfb6db5 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Sun, 28 Dec 2025 18:02:00 +0900
Subject: Remove Q_BROKEN_TEMPLATE_SPECIALIZATION define. We are using c++17
 compilers, so template specialization are supported.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 doc/html/tqasciicache-h.html | 2 --
 doc/html/tqasciidict-h.html  | 2 --
 doc/html/tqcache-h.html      | 2 --
 doc/html/tqdict-h.html       | 2 --
 doc/html/tqglobal-h.html     | 6 ------
 doc/html/tqintcache-h.html   | 2 --
 doc/html/tqintdict-h.html    | 2 --
 doc/html/tqptrdict-h.html    | 2 --
 doc/html/tqptrlist-h.html    | 2 --
 doc/html/tqptrqueue-h.html   | 2 --
 doc/html/tqptrstack-h.html   | 2 --
 doc/html/tqptrvector-h.html  | 2 --
 src/tools/tqasciicache.h     | 2 --
 src/tools/tqasciidict.h      | 2 --
 src/tools/tqcache.h          | 2 --
 src/tools/tqdict.h           | 2 --
 src/tools/tqglobal.h         | 6 ------
 src/tools/tqintcache.h       | 2 --
 src/tools/tqintdict.h        | 2 --
 src/tools/tqptrdict.h        | 2 --
 src/tools/tqptrlist.h        | 2 --
 src/tools/tqptrqueue.h       | 2 --
 src/tools/tqptrstack.h       | 2 --
 src/tools/tqptrvector.h      | 2 --
 24 files changed, 56 deletions(-)

diff --git a/doc/html/tqasciicache-h.html b/doc/html/tqasciicache-h.html
index 62706a62..11301cac 100644
--- a/doc/html/tqasciicache-h.html
+++ b/doc/html/tqasciicache-h.html
@@ -119,11 +119,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQAsciiCache&lt;void&gt;::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template&lt;class type&gt; inline void TQAsciiCache&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/doc/html/tqasciidict-h.html b/doc/html/tqasciidict-h.html
index 0d25e2bc..2a3deaae 100644
--- a/doc/html/tqasciidict-h.html
+++ b/doc/html/tqasciidict-h.html
@@ -124,11 +124,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQAsciiDict&lt;void&gt;::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template&lt;class type&gt; inline void TQAsciiDict&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/doc/html/tqcache-h.html b/doc/html/tqcache-h.html
index 8bf7ebe2..50450d92 100644
--- a/doc/html/tqcache-h.html
+++ b/doc/html/tqcache-h.html
@@ -117,11 +117,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQCache&lt;void&gt;::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template&lt;class type&gt; inline void TQCache&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/doc/html/tqdict-h.html b/doc/html/tqdict-h.html
index 4a7f2da6..5d0639ae 100644
--- a/doc/html/tqdict-h.html
+++ b/doc/html/tqdict-h.html
@@ -124,11 +124,9 @@ private:
 	void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQDict&lt;void&gt;::deleteItem( Item )
 {
 }
-#endif
 
 template&lt;class type&gt; inline void TQDict&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/doc/html/tqglobal-h.html b/doc/html/tqglobal-h.html
index d8eba615..ea6951cc 100644
--- a/doc/html/tqglobal-h.html
+++ b/doc/html/tqglobal-h.html
@@ -285,8 +285,6 @@ body { background: #ffffff; color: black; }
 #    define Q_NO_BOOL_TYPE
 #    define Q_CANNOT_DELETE_CONSTANT
 #    define mutable
-/* ??? */
-#    define Q_BROKEN_TEMPLATE_SPECIALIZATION
 /* no template classes in TQVariant */
 #    define TQT_NO_TEMPLATE_VARIANT
 /* Wcc does not fill in functions needed by valuelists, maps, and
@@ -359,7 +357,6 @@ body { background: #ffffff; color: black; }
 #    define Q_NO_USING_KEYWORD
 #    define TQ_TYPENAME
 #    define TQ_INLINE_TEMPLATES inline
-#    define Q_BROKEN_TEMPLATE_SPECIALIZATION
 #    define Q_CANNOT_DELETE_CONSTANT
 #  endif
 
@@ -433,12 +430,10 @@ body { background: #ffffff; color: black; }
 #    define Q_CC_MIPS
 #    if defined(_MIPS_SIM) &amp;&amp; (_MIPS_SIM == _ABIO32) /* o32 ABI */
 #      define TQ_TYPENAME
-#      define Q_BROKEN_TEMPLATE_SPECIALIZATION
 #      define Q_NO_EXPLICIT_KEYWORD
 #      define TQ_INLINE_TEMPLATES inline
 #    elif defined(_COMPILER_VERSION) &amp;&amp; (_COMPILER_VERSION &lt; 730) /* 7.2 */
 #      define TQ_TYPENAME
-#      define Q_BROKEN_TEMPLATE_SPECIALIZATION
 #    endif
 #    define Q_NO_USING_KEYWORD /* ### check "using" status */
 #    if defined(_COMPILER_VERSION) &amp;&amp; (_COMPILER_VERSION &gt;= 740)
@@ -488,7 +483,6 @@ body { background: #ffffff; color: black; }
 #    define Q_CC_HP
 #    define Q_NO_BOOL_TYPE
 #    define TQ_FULL_TEMPLATE_INSTANTIATION
-#    define Q_BROKEN_TEMPLATE_SPECIALIZATION
 #    define Q_NO_EXPLICIT_KEYWORD
 #  endif
 #  define Q_NO_USING_KEYWORD /* ### check "using" status */
diff --git a/doc/html/tqintcache-h.html b/doc/html/tqintcache-h.html
index 93ecd9ed..ad85bf4f 100644
--- a/doc/html/tqintcache-h.html
+++ b/doc/html/tqintcache-h.html
@@ -118,11 +118,9 @@ private:
 	void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQIntCache&lt;void&gt;::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template&lt;class type&gt; inline void TQIntCache&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/doc/html/tqintdict-h.html b/doc/html/tqintdict-h.html
index 27ee8dbb..50dc6177 100644
--- a/doc/html/tqintdict-h.html
+++ b/doc/html/tqintdict-h.html
@@ -121,11 +121,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQIntDict&lt;void&gt;::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template&lt;class type&gt; inline void TQIntDict&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/doc/html/tqptrdict-h.html b/doc/html/tqptrdict-h.html
index 5a4ee439..504e26aa 100644
--- a/doc/html/tqptrdict-h.html
+++ b/doc/html/tqptrdict-h.html
@@ -121,11 +121,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQPtrDict&lt;void&gt;::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template&lt;class type&gt;
 inline void TQPtrDict&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
diff --git a/doc/html/tqptrlist-h.html b/doc/html/tqptrlist-h.html
index 4d065877..7d7b8721 100644
--- a/doc/html/tqptrlist-h.html
+++ b/doc/html/tqptrlist-h.html
@@ -178,11 +178,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQPtrList&lt;void&gt;::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template&lt;class type&gt; inline void TQPtrList&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/doc/html/tqptrqueue-h.html b/doc/html/tqptrqueue-h.html
index 11dc1bd3..b6d411c4 100644
--- a/doc/html/tqptrqueue-h.html
+++ b/doc/html/tqptrqueue-h.html
@@ -111,11 +111,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQPtrQueue&lt;void&gt;::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template&lt;class type&gt; inline void TQPtrQueue&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/doc/html/tqptrstack-h.html b/doc/html/tqptrstack-h.html
index 51cd11e4..822e50ff 100644
--- a/doc/html/tqptrstack-h.html
+++ b/doc/html/tqptrstack-h.html
@@ -111,11 +111,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQPtrStack&lt;void&gt;::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template&lt;class type&gt; inline void TQPtrStack&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/doc/html/tqptrvector-h.html b/doc/html/tqptrvector-h.html
index ca6bb438..3d80f2f2 100644
--- a/doc/html/tqptrvector-h.html
+++ b/doc/html/tqptrvector-h.html
@@ -133,11 +133,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template&lt;&gt; inline void TQPtrVector&lt;void&gt;::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template&lt;class type&gt; inline void TQPtrVector&lt;type&gt;::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/src/tools/tqasciicache.h b/src/tools/tqasciicache.h
index dff7aaec..84b8f4b3 100644
--- a/src/tools/tqasciicache.h
+++ b/src/tools/tqasciicache.h
@@ -84,11 +84,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQAsciiCache<void>::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template<class type> inline void TQAsciiCache<type>::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/src/tools/tqasciidict.h b/src/tools/tqasciidict.h
index f285dd47..e6d607be 100644
--- a/src/tools/tqasciidict.h
+++ b/src/tools/tqasciidict.h
@@ -89,11 +89,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQAsciiDict<void>::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template<class type> inline void TQAsciiDict<type>::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/src/tools/tqcache.h b/src/tools/tqcache.h
index d6f60520..f41e2bed 100644
--- a/src/tools/tqcache.h
+++ b/src/tools/tqcache.h
@@ -82,11 +82,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQCache<void>::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template<class type> inline void TQCache<type>::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/src/tools/tqdict.h b/src/tools/tqdict.h
index 55723c83..1d7bfd69 100644
--- a/src/tools/tqdict.h
+++ b/src/tools/tqdict.h
@@ -89,11 +89,9 @@ private:
 	void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQDict<void>::deleteItem( Item )
 {
 }
-#endif
 
 template<class type> inline void TQDict<type>::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/src/tools/tqglobal.h b/src/tools/tqglobal.h
index e0fc6320..68aa3130 100644
--- a/src/tools/tqglobal.h
+++ b/src/tools/tqglobal.h
@@ -252,8 +252,6 @@
 #    define Q_NO_BOOL_TYPE
 #    define Q_CANNOT_DELETE_CONSTANT
 #    define mutable
-/* ??? */
-#    define Q_BROKEN_TEMPLATE_SPECIALIZATION
 /* no template classes in TQVariant */
 #    define TQT_NO_TEMPLATE_VARIANT
 /* Wcc does not fill in functions needed by valuelists, maps, and
@@ -326,7 +324,6 @@
 #    define Q_NO_USING_KEYWORD
 #    define TQ_TYPENAME
 #    define TQ_INLINE_TEMPLATES inline
-#    define Q_BROKEN_TEMPLATE_SPECIALIZATION
 #    define Q_CANNOT_DELETE_CONSTANT
 #  endif
 
@@ -400,12 +397,10 @@
 #    define Q_CC_MIPS
 #    if defined(_MIPS_SIM) && (_MIPS_SIM == _ABIO32) /* o32 ABI */
 #      define TQ_TYPENAME
-#      define Q_BROKEN_TEMPLATE_SPECIALIZATION
 #      define Q_NO_EXPLICIT_KEYWORD
 #      define TQ_INLINE_TEMPLATES inline
 #    elif defined(_COMPILER_VERSION) && (_COMPILER_VERSION < 730) /* 7.2 */
 #      define TQ_TYPENAME
-#      define Q_BROKEN_TEMPLATE_SPECIALIZATION
 #    endif
 #    define Q_NO_USING_KEYWORD /* ### check "using" status */
 #    if defined(_COMPILER_VERSION) && (_COMPILER_VERSION >= 740)
@@ -455,7 +450,6 @@
 #    define Q_CC_HP
 #    define Q_NO_BOOL_TYPE
 #    define TQ_FULL_TEMPLATE_INSTANTIATION
-#    define Q_BROKEN_TEMPLATE_SPECIALIZATION
 #    define Q_NO_EXPLICIT_KEYWORD
 #  endif
 #  define Q_NO_USING_KEYWORD /* ### check "using" status */
diff --git a/src/tools/tqintcache.h b/src/tools/tqintcache.h
index 32903d53..9f7d52ce 100644
--- a/src/tools/tqintcache.h
+++ b/src/tools/tqintcache.h
@@ -83,11 +83,9 @@ private:
 	void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQIntCache<void>::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template<class type> inline void TQIntCache<type>::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/src/tools/tqintdict.h b/src/tools/tqintdict.h
index 8427e446..2b5d62d8 100644
--- a/src/tools/tqintdict.h
+++ b/src/tools/tqintdict.h
@@ -86,11 +86,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQIntDict<void>::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template<class type> inline void TQIntDict<type>::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/src/tools/tqptrdict.h b/src/tools/tqptrdict.h
index c14c132c..999f9f8c 100644
--- a/src/tools/tqptrdict.h
+++ b/src/tools/tqptrdict.h
@@ -86,11 +86,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQPtrDict<void>::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template<class type>
 inline void TQPtrDict<type>::deleteItem( TQPtrCollection::Item d )
diff --git a/src/tools/tqptrlist.h b/src/tools/tqptrlist.h
index ef63382c..b43dd7c1 100644
--- a/src/tools/tqptrlist.h
+++ b/src/tools/tqptrlist.h
@@ -143,11 +143,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQPtrList<void>::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template<class type> inline void TQPtrList<type>::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/src/tools/tqptrqueue.h b/src/tools/tqptrqueue.h
index 2cebf08f..82a9af53 100644
--- a/src/tools/tqptrqueue.h
+++ b/src/tools/tqptrqueue.h
@@ -76,11 +76,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQPtrQueue<void>::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template<class type> inline void TQPtrQueue<type>::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/src/tools/tqptrstack.h b/src/tools/tqptrstack.h
index 229f03ef..d3a0f386 100644
--- a/src/tools/tqptrstack.h
+++ b/src/tools/tqptrstack.h
@@ -76,11 +76,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQPtrStack<void>::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template<class type> inline void TQPtrStack<type>::deleteItem( TQPtrCollection::Item d )
 {
diff --git a/src/tools/tqptrvector.h b/src/tools/tqptrvector.h
index bf284620..5d497d99 100644
--- a/src/tools/tqptrvector.h
+++ b/src/tools/tqptrvector.h
@@ -98,11 +98,9 @@ private:
     void  deleteItem( Item d );
 };
 
-#if !defined(Q_BROKEN_TEMPLATE_SPECIALIZATION)
 template<> inline void TQPtrVector<void>::deleteItem( TQPtrCollection::Item )
 {
 }
-#endif
 
 template<class type> inline void TQPtrVector<type>::deleteItem( TQPtrCollection::Item d )
 {
-- 
cgit v1.2.3

