summaryrefslogtreecommitdiffstats
path: root/src/tools/tqpair.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-28 21:41:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-28 21:41:52 +0900
commit0e9cae00ef660b51955c7c9abfa7eb148d8bfab0 (patch)
tree6b46cc5b3ced64b9cba7b1293ada94bf5cfb2125 /src/tools/tqpair.h
parent1df9f282051905555d02d43069a2c9ca0cc89270 (diff)
downloadtqt-remove/tq-inline-template-define.tar.gz
tqt-remove/tq-inline-template-define.zip
Remove TQ_INLINE_TEMPLATES define.remove/tq-inline-template-define
inline' is redundant in function template definitions, except for specific template specialization Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools/tqpair.h')
-rw-r--r--src/tools/tqpair.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/tqpair.h b/src/tools/tqpair.h
index 8d487e38b..588c809c2 100644
--- a/src/tools/tqpair.h
+++ b/src/tools/tqpair.h
@@ -72,20 +72,20 @@ struct TQPair
};
template <class T1, class T2>
-TQ_INLINE_TEMPLATES bool operator==( const TQPair<T1, T2>& x, const TQPair<T1, T2>& y )
+bool operator==( const TQPair<T1, T2>& x, const TQPair<T1, T2>& y )
{
return x.first == y.first && x.second == y.second;
}
template <class T1, class T2>
-TQ_INLINE_TEMPLATES bool operator<( const TQPair<T1, T2>& x, const TQPair<T1, T2>& y )
+bool operator<( const TQPair<T1, T2>& x, const TQPair<T1, T2>& y )
{
return x.first < y.first ||
( !( y.first < x.first ) && x.second < y.second );
}
template <class T1, class T2>
-TQ_INLINE_TEMPLATES TQPair<T1, T2> qMakePair( const T1& x, const T2& y )
+TQPair<T1, T2> qMakePair( const T1& x, const T2& y )
{
return TQPair<T1, T2>( x, y );
}