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 62706a620..11301cac1 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 0d25e2bc8..2a3deaae4 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 8bf7ebe29..50450d92b 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 4a7f2da67..5d0639ae8 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 d8eba6159..ea6951cc1 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 93ecd9ed0..ad85bf4f9 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 27ee8dbb7..50dc61774 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 5a4ee4399..504e26aaf 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 4d0658770..7d7b87213 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 11dc1bd3f..b6d411c4d 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 51cd11e4a..822e50ff0 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 ca6bb438f..3d80f2f2d 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 dff7aaec9..84b8f4b37 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 f285dd473..e6d607be4 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 d6f605203..f41e2bed2 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 55723c83a..1d7bfd694 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 e0fc63209..68aa31308 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 32903d537..9f7d52ce9 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 8427e4467..2b5d62d8e 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 c14c132c1..999f9f8cb 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 ef63382c6..b43dd7c18 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 2cebf08f8..82a9af53d 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 229f03ef9..d3a0f3862 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 bf2846209..5d497d996 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

