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:51:35 +0900 |
| commit | 45d592deb685e106e20933502bbecda04ab73d75 (patch) | |
| tree | 4ce756e2ddaa21e7c97d6f35e6354912b453ab89 /src/kernel | |
| parent | 2c13edf0c015de4b82f580f7833af4fffee6a04a (diff) | |
| download | tqt-45d592deb685e106e20933502bbecda04ab73d75.tar.gz tqt-45d592deb685e106e20933502bbecda04ab73d75.zip | |
Remove usage of TQ_FULL_TEMPLATE_INSTANTIATION and TQ_DUMMY_COMPARISON_OPERATOR.
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>
Diffstat (limited to 'src/kernel')
| -rw-r--r-- | src/kernel/tqiconset.cpp | 2 | ||||
| -rw-r--r-- | src/kernel/tqiconset.h | 4 | ||||
| -rw-r--r-- | src/kernel/tqpixmap.h | 4 | ||||
| -rw-r--r-- | src/kernel/tqrichtext.cpp | 3 | ||||
| -rw-r--r-- | src/kernel/tqrichtext_p.h | 2 | ||||
| -rw-r--r-- | src/kernel/tqtranslator.cpp | 1 |
6 files changed, 0 insertions, 16 deletions
diff --git a/src/kernel/tqiconset.cpp b/src/kernel/tqiconset.cpp index d22116207..71b71ffee 100644 --- a/src/kernel/tqiconset.cpp +++ b/src/kernel/tqiconset.cpp @@ -156,8 +156,6 @@ public: delete factory; factory = newFactory; } - - TQ_DUMMY_COMPARISON_OPERATOR( TQIconSetPrivate ) }; TQIconSetIcon *TQIconSetPrivate::icon( const TQIconSet *iconSet, diff --git a/src/kernel/tqiconset.h b/src/kernel/tqiconset.h index 7caa24b74..798c4bbe5 100644 --- a/src/kernel/tqiconset.h +++ b/src/kernel/tqiconset.h @@ -89,10 +89,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/src/kernel/tqpixmap.h b/src/kernel/tqpixmap.h index 0a89e98bf..4af4a451b 100644 --- a/src/kernel/tqpixmap.h +++ b/src/kernel/tqpixmap.h @@ -168,10 +168,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/src/kernel/tqrichtext.cpp b/src/kernel/tqrichtext.cpp index eddb23761..a4a80e0dd 100644 --- a/src/kernel/tqrichtext.cpp +++ b/src/kernel/tqrichtext.cpp @@ -1567,8 +1567,6 @@ struct TQ_EXPORT TQTextDocumentTag { liststyle = t.liststyle; return *this; } - - TQ_DUMMY_COMPARISON_OPERATOR(TQTextDocumentTag) }; @@ -6584,7 +6582,6 @@ struct TQPixmapInt TQPixmapInt() : ref( 0 ) {} TQPixmap pm; int ref; - TQ_DUMMY_COMPARISON_OPERATOR(TQPixmapInt) }; static TQMap<TQString, TQPixmapInt> *pixmap_map = 0; diff --git a/src/kernel/tqrichtext_p.h b/src/kernel/tqrichtext_p.h index 2d75c779b..d2219b562 100644 --- a/src/kernel/tqrichtext_p.h +++ b/src/kernel/tqrichtext_p.h @@ -760,7 +760,6 @@ struct TQ_EXPORT TQTextDocumentSelection { TQTextCursor startCursor, endCursor; bool swapped; - TQ_DUMMY_COMPARISON_OPERATOR(TQTextDocumentSelection) }; #if defined(Q_TEMPLATEDLL) @@ -1128,7 +1127,6 @@ struct TQ_EXPORT TQTextParagraphSelection { TQTextParagraphSelection() : start(0), end(0) { } int start, end; - TQ_DUMMY_COMPARISON_OPERATOR(TQTextParagraphSelection) }; struct TQ_EXPORT TQTextLineStart diff --git a/src/kernel/tqtranslator.cpp b/src/kernel/tqtranslator.cpp index 59444c327..2d22dfff1 100644 --- a/src/kernel/tqtranslator.cpp +++ b/src/kernel/tqtranslator.cpp @@ -182,7 +182,6 @@ public: bool operator<( const Offset&k ) const { return ( h != k.h ) ? h < k.h : o < k.o; } - TQ_DUMMY_COMPARISON_OPERATOR(TQTranslatorPrivate::Offset) uint h; uint o; }; |
