diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-30 23:03:27 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-30 23:23:38 +0900 |
| commit | 3d804f5859eba617160254190e1b712604195521 (patch) | |
| tree | 170eaeb439f0920b6fd4c273532b26f941205faf | |
| parent | 915c019ea9c1a622ac7b42b5df92f7d2161a328e (diff) | |
| download | libtqt-perl-remove/full-template-instantionation.tar.gz libtqt-perl-remove/full-template-instantionation.zip | |
Remove use of TQ_FULL_TEMPLATE_INSTANTIATION and TQ_DUMMY_COMPARISON_OPERATOR.remove/full-template-instantionation
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>
| -rw-r--r-- | kalyptus/kalyptus | 2 | ||||
| -rw-r--r-- | puic/uic.h | 14 |
2 files changed, 0 insertions, 16 deletions
diff --git a/kalyptus/kalyptus b/kalyptus/kalyptus index ae7ec1e..9a35ec3 100644 --- a/kalyptus/kalyptus +++ b/kalyptus/kalyptus @@ -541,7 +541,6 @@ LOOP: || $p =~ /^\s*Q_GADGET/ || $p =~ /^\s*TQ_OVERRIDE/ # and TQ_OVERRIDE || $p =~ /^\s*TQ_SETS/ - || $p =~ /^\s*TQ_DUMMY_COMPARISON_OPERATOR/ || $p =~ /^\s*K_SYCOCATYPE/ # and K_SYCOCA stuff || $p =~ /^\s*K_SYCOCAFACTORY/ # || $p =~ /^\s*KSVG_/ # and KSVG stuff ;) @@ -586,7 +585,6 @@ LOOP: $p =~ m/^#\s*if\s+defined\(Q_CC_/ or $p =~ m/^#\s*if\s+defined\(TQT_THREAD_SUPPORT/ or $p =~ m/^#\s*else/ or - $p =~ m/^#\s*if\s+defined\(TQ_FULL_TEMPLATE_INSTANTIATION/ or $p =~ m/^#\s*ifdef\s+QT_WORKSPACE_WINDOWMODE/ or $p =~ m/^#\s*ifdef\s+QT_COMPAT/ or $p =~ m/^#\s*if\s+defined\s*\(?QT_COMPAT/ or @@ -29,19 +29,6 @@ #include <tqpalette.h> #include <tqvariant.h> -#ifndef TQ_DUMMY_COMPARISON_OPERATOR -# warning "Defining TQ_DUMMY_COMPARISON_OPERATOR" -# 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 -#endif - class PyIndent { public: @@ -148,7 +135,6 @@ private: { TQString header; TQString location; - TQ_DUMMY_COMPARISON_OPERATOR(CustomInclude) }; TQValueList<Buddy> buddies; |
