diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-01 19:03:47 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-01 19:53:00 +0900 |
| commit | 6727c1b1c9a77bee699350d271ec63c92519d5e3 (patch) | |
| tree | 88f91d54910088613ea3a11aa4d38803a784ff90 /doc | |
| parent | 60ce9c848b2da8b5426e8257f493d4122faf750c (diff) | |
| download | tqt-r14.1.x.tar.gz tqt-r14.1.x.zip | |
Remove usage of TQ_FULL_TEMPLATE_INSTANTIATION and TQ_DUMMY_COMPARISON_OPERATOR.r14.1.x
The #defines were used for some very old compilers which had issues with template instantiation.
We are now using c++17 compilers, so this is unnecessary.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 45d592deb685e106e20933502bbecda04ab73d75)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/html/canvas-chart-example.html | 8 | ||||
| -rw-r--r-- | doc/html/chart-element-h.html | 8 | ||||
| -rw-r--r-- | doc/html/qdns-h.html | 2 | ||||
| -rw-r--r-- | doc/html/qglobal-h.html | 28 | ||||
| -rw-r--r-- | doc/html/qiconset-h.html | 4 | ||||
| -rw-r--r-- | doc/html/qmap-h.html | 7 | ||||
| -rw-r--r-- | doc/html/qpixmap-h.html | 4 | ||||
| -rw-r--r-- | doc/html/qtl-qvaluelist-example.html | 3 | ||||
| -rw-r--r-- | doc/html/qwidgetfactory-h.html | 2 |
9 files changed, 1 insertions, 65 deletions
diff --git a/doc/html/canvas-chart-example.html b/doc/html/canvas-chart-example.html index f3527145e..8467c8580 100644 --- a/doc/html/canvas-chart-example.html +++ b/doc/html/canvas-chart-example.html @@ -123,14 +123,6 @@ public: void setProX( int index, double value ); void setProY( int index, double value ); -#ifdef TQ_FULL_TEMPLATE_INSTANTIATION - // xlC 3.x workaround - TQ_DUMMY_COMPARISON_OPERATOR(Element) - bool operator!=( const Element& e) const { - return ( !(e == *this) ); - } -#endif - private: void init( double value, TQColor valueColor, int valuePattern, const <a href="ntqstring.html">TQString</a>& label, TQColor labelColor ); diff --git a/doc/html/chart-element-h.html b/doc/html/chart-element-h.html index cc8895432..3101ca316 100644 --- a/doc/html/chart-element-h.html +++ b/doc/html/chart-element-h.html @@ -91,14 +91,6 @@ public: void setProX( int index, double value ); void setProY( int index, double value ); -#ifdef TQ_FULL_TEMPLATE_INSTANTIATION - // xlC 3.x workaround - TQ_DUMMY_COMPARISON_OPERATOR(Element) - bool operator!=( const Element& e) const { - return ( !(e == *this) ); - } -#endif - private: void init( double value, TQColor valueColor, int valuePattern, const <a href="ntqstring.html">TQString</a>& label, TQColor labelColor ); diff --git a/doc/html/qdns-h.html b/doc/html/qdns-h.html index 6bc631f1e..e787146b1 100644 --- a/doc/html/qdns-h.html +++ b/doc/html/qdns-h.html @@ -133,7 +133,6 @@ public: :name(n), priority(p) {} TQString name; TQ_UINT16 priority; - TQ_DUMMY_COMPARISON_OPERATOR(MailServer) }; TQValueList<MailServer> mailServers() const; @@ -145,7 +144,6 @@ public: TQ_UINT16 priority; TQ_UINT16 weight; TQ_UINT16 port; - TQ_DUMMY_COMPARISON_OPERATOR(Server) }; TQValueList<Server> servers() const; diff --git a/doc/html/qglobal-h.html b/doc/html/qglobal-h.html index 12d6e2ed7..73ae7da68 100644 --- a/doc/html/qglobal-h.html +++ b/doc/html/qglobal-h.html @@ -277,11 +277,6 @@ body { background: #ffffff; color: black; } # define mutable /* no template classes in TQVariant */ # define TQT_NO_TEMPLATE_VARIANT -/* Wcc does not fill in functions needed by valuelists, maps, and - valuestacks implicitly */ -# define TQ_FULL_TEMPLATE_INSTANTIATION -/* can we just compare the structures? */ -# define TQ_FULL_TEMPLATE_INSTANTIATION_MEMCMP /* these are not useful to our customers */ # define QT_QWS_NO_SHM # define TQT_NO_QWS_MULTIPROCESS @@ -292,9 +287,6 @@ body { background: #ffffff; color: black; } #elif defined(__GNUC__) # define Q_CC_GNU # define Q_C_CALLBACKS -# if __GNUC__ == 2 && __GNUC_MINOR__ <= 7 -# define TQ_FULL_TEMPLATE_INSTANTIATION -# endif /* GCC 2.95 knows "using" but does not support it correctly */ # if __GNUC__ == 2 && __GNUC_MINOR__ <= 95 # define Q_NO_USING_KEYWORD @@ -343,7 +335,6 @@ body { background: #ffffff; color: black; } but it is not defined on older compilers like C Set 3.1 */ #elif defined(__xlC__) # define Q_CC_XLC -# define TQ_FULL_TEMPLATE_INSTANTIATION # if __xlC__ < 0x400 # define Q_NO_USING_KEYWORD # define TQ_TYPENAME @@ -442,7 +433,6 @@ body { background: #ffffff; color: black; } # define Q_CC_HPACC # else # define Q_CC_HP -# define TQ_FULL_TEMPLATE_INSTANTIATION # endif # define Q_NO_USING_KEYWORD /* ### check "using" status */ @@ -876,23 +866,7 @@ TQ_EXPORT const char *tqInstallPathSysconf(); #endif /* __cplusplus */ -/* - compilers which follow outdated template instantiation rules - require a class to have a comparison operator to exist when - a TQValueList of this type is instantiated. It's not actually - used in the list, though. Hence the dummy implementation. - Just in case other code relies on it we better trigger a warning - mandating a real implementation. -*/ -#ifdef TQ_FULL_TEMPLATE_INSTANTIATION -# define TQ_DUMMY_COMPARISON_OPERATOR(C) \ - bool operator==( const C& ) const { \ - tqWarning( #C"::operator==( const "#C"& ) got called." ); \ - return false; \ - } -#else -# define TQ_DUMMY_COMPARISON_OPERATOR(C) -#endif +#define TQ_DUMMY_COMPARISON_OPERATOR(C) #endif /* TQGLOBAL_H */ diff --git a/doc/html/qiconset-h.html b/doc/html/qiconset-h.html index 53944617c..a623b8afa 100644 --- a/doc/html/qiconset-h.html +++ b/doc/html/qiconset-h.html @@ -125,10 +125,6 @@ public: static void setIconSize( Size which, const TQSize& size ); static const TQSize& iconSize( Size which ); -#ifndef Q_QDOC - TQ_DUMMY_COMPARISON_OPERATOR(TQIconSet) -#endif - private: void normalize( Size& which, const TQSize& pixSize ); TQPixmap *createScaled( Size size, const TQPixmap *suppliedPix ) const; diff --git a/doc/html/qmap-h.html b/doc/html/qmap-h.html index 0ffed7835..40971a043 100644 --- a/doc/html/qmap-h.html +++ b/doc/html/qmap-h.html @@ -764,13 +764,6 @@ public: void remove( iterator it ) { detach(); sh->remove( it ); } void remove( const Key& k ); -#if defined(TQ_FULL_TEMPLATE_INSTANTIATION) - bool operator==( const TQMap<Key,T>& ) const { return false; } -#ifndef TQT_NO_STL - bool operator==( const std::map<Key,T>& ) const { return false; } -#endif -#endif - protected: /** * Helpers diff --git a/doc/html/qpixmap-h.html b/doc/html/qpixmap-h.html index 7938781d1..3b3438f49 100644 --- a/doc/html/qpixmap-h.html +++ b/doc/html/qpixmap-h.html @@ -211,10 +211,6 @@ public: void x11SetScreen( int screen ); #endif -#ifndef Q_QDOC - TQ_DUMMY_COMPARISON_OPERATOR(TQPixmap) -#endif - protected: TQPixmap( int w, int h, const uchar *data, bool isXbitmap ); int metric( int ) const; diff --git a/doc/html/qtl-qvaluelist-example.html b/doc/html/qtl-qvaluelist-example.html index d69ab3d10..8cc0ca2a1 100644 --- a/doc/html/qtl-qvaluelist-example.html +++ b/doc/html/qtl-qvaluelist-example.html @@ -64,9 +64,6 @@ public: int salary() const { return s; } void setSalary( int salary ) { s = salary; } - // this is here to support very old compilers - TQ_DUMMY_COMPARISON_OPERATOR( Employee ) - private: <a href="ntqstring.html">TQString</a> n; int s; diff --git a/doc/html/qwidgetfactory-h.html b/doc/html/qwidgetfactory-h.html index 57e2d0f87..568726805 100644 --- a/doc/html/qwidgetfactory-h.html +++ b/doc/html/qwidgetfactory-h.html @@ -187,7 +187,6 @@ private: TQString name; TQPixmap pix; TQString field; - TQ_DUMMY_COMPARISON_OPERATOR( Field ) }; struct SqlWidgetConnection @@ -198,7 +197,6 @@ private: TQString conn; TQString table; TQMap<TQString, TQString> *dbControls; - TQ_DUMMY_COMPARISON_OPERATOR( SqlWidgetConnection ) }; TQValueList<Image> images; |
