From 926102a455014e6ab308aaced19e32eed7ed4414 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Sep 2023 12:45:31 +0900 Subject: Replace various Q_* and QT_* defines with TQ_* and TQT_* Signed-off-by: Michele Calgaro --- src/tools/ntqvaluevector.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/tools/ntqvaluevector.h') diff --git a/src/tools/ntqvaluevector.h b/src/tools/ntqvaluevector.h index 87dfd7482..90dc45e10 100644 --- a/src/tools/ntqvaluevector.h +++ b/src/tools/ntqvaluevector.h @@ -121,7 +121,7 @@ private: }; template -Q_INLINE_TEMPLATES TQValueVectorPrivate::TQValueVectorPrivate( const TQValueVectorPrivate& x ) +TQ_INLINE_TEMPLATES TQValueVectorPrivate::TQValueVectorPrivate( const TQValueVectorPrivate& x ) : TQShared() { size_t i = x.size(); @@ -142,7 +142,7 @@ Q_INLINE_TEMPLATES TQValueVectorPrivate::TQValueVectorPrivate( const TQValueV } template -Q_INLINE_TEMPLATES TQValueVectorPrivate::TQValueVectorPrivate( size_t size ) +TQ_INLINE_TEMPLATES TQValueVectorPrivate::TQValueVectorPrivate( size_t size ) { if ( size > 0 ) { start = new T[size]; @@ -156,7 +156,7 @@ Q_INLINE_TEMPLATES TQValueVectorPrivate::TQValueVectorPrivate( size_t size ) } template -Q_INLINE_TEMPLATES void TQValueVectorPrivate::insert( pointer pos, const T& x ) +TQ_INLINE_TEMPLATES void TQValueVectorPrivate::insert( pointer pos, const T& x ) { const size_t lastSize = size(); const size_t n = lastSize !=0 ? 2*lastSize : 1; @@ -173,7 +173,7 @@ Q_INLINE_TEMPLATES void TQValueVectorPrivate::insert( pointer pos, const T& x } template -Q_INLINE_TEMPLATES void TQValueVectorPrivate::insert( pointer pos, size_t n, const T& x ) +TQ_INLINE_TEMPLATES void TQValueVectorPrivate::insert( pointer pos, size_t n, const T& x ) { if ( size_t( end - finish ) >= n ) { // enough room @@ -213,7 +213,7 @@ Q_INLINE_TEMPLATES void TQValueVectorPrivate::insert( pointer pos, size_t n, } template -Q_INLINE_TEMPLATES void TQValueVectorPrivate::reserve( size_t n ) +TQ_INLINE_TEMPLATES void TQValueVectorPrivate::reserve( size_t n ) { const size_t lastSize = size(); pointer tmp = growAndCopy( n, start, finish ); @@ -223,7 +223,7 @@ Q_INLINE_TEMPLATES void TQValueVectorPrivate::reserve( size_t n ) } template -Q_INLINE_TEMPLATES Q_TYPENAME TQValueVectorPrivate::pointer TQValueVectorPrivate::growAndCopy( size_t n, pointer s, pointer f ) +TQ_INLINE_TEMPLATES TQ_TYPENAME TQValueVectorPrivate::pointer TQValueVectorPrivate::growAndCopy( size_t n, pointer s, pointer f ) { pointer newStart = new T[n]; tqCopy( s, f, newStart ); @@ -491,21 +491,21 @@ private: }; template -Q_INLINE_TEMPLATES TQValueVector::TQValueVector( size_type n, const T& val ) +TQ_INLINE_TEMPLATES TQValueVector::TQValueVector( size_type n, const T& val ) { sh = new TQValueVectorPrivate( n ); tqFill( begin(), end(), val ); } template -Q_INLINE_TEMPLATES void TQValueVector::detachInternal() +TQ_INLINE_TEMPLATES void TQValueVector::detachInternal() { sh->deref(); sh = new TQValueVectorPrivate( *sh ); } template -Q_INLINE_TEMPLATES Q_TYPENAME TQValueVector::iterator TQValueVector::insert( iterator pos, const T& x ) +TQ_INLINE_TEMPLATES TQ_TYPENAME TQValueVector::iterator TQValueVector::insert( iterator pos, const T& x ) { size_type offset = pos - sh->start; detach(); @@ -530,7 +530,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQValueVector::iterator TQValueVector::inser } template -Q_INLINE_TEMPLATES Q_TYPENAME TQValueVector::iterator TQValueVector::insert( iterator pos, size_type n, const T& x ) +TQ_INLINE_TEMPLATES TQ_TYPENAME TQValueVector::iterator TQValueVector::insert( iterator pos, size_type n, const T& x ) { if ( n != 0 ) { size_type offset = pos - sh->start; @@ -544,7 +544,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQValueVector::iterator TQValueVector::inser #ifndef TQT_NO_DATASTREAM template -Q_INLINE_TEMPLATES TQDataStream& operator>>( TQDataStream& s, TQValueVector& v ) +TQ_INLINE_TEMPLATES TQDataStream& operator>>( TQDataStream& s, TQValueVector& v ) { v.clear(); TQ_UINT32 c; @@ -560,7 +560,7 @@ Q_INLINE_TEMPLATES TQDataStream& operator>>( TQDataStream& s, TQValueVector& } template -Q_INLINE_TEMPLATES TQDataStream& operator<<( TQDataStream& s, const TQValueVector& v ) +TQ_INLINE_TEMPLATES TQDataStream& operator<<( TQDataStream& s, const TQValueVector& v ) { s << (TQ_UINT32)v.size(); // ### use typename TQValueVector::const_iterator once all supported -- cgit v1.2.1