summaryrefslogtreecommitdiffstats
path: root/kmail/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/util.cpp')
-rw-r--r--kmail/util.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kmail/util.cpp b/kmail/util.cpp
index d153e9d37..bbf15ba56 100644
--- a/kmail/util.cpp
+++ b/kmail/util.cpp
@@ -146,7 +146,7 @@ void KMail::Util::append( TQByteArray& that, const TQByteArray& str )
that.detach();
uint len1 = that.size();
uint len2 = str.size();
- if ( that.tqresize( len1 + len2, TQGArray::SpeedOptim ) )
+ if ( that.resize( len1 + len2, TQGArray::SpeedOptim ) )
memcpy( that.data() + len1, str.data(), len2 );
}
@@ -157,7 +157,7 @@ void KMail::Util::append( TQByteArray& that, const char* str )
that.detach();
uint len1 = that.size();
uint len2 = tqstrlen(str);
- if ( that.tqresize( len1 + len2, TQGArray::SpeedOptim ) )
+ if ( that.resize( len1 + len2, TQGArray::SpeedOptim ) )
memcpy( that.data() + len1, str, len2 );
}
@@ -166,7 +166,7 @@ void KMail::Util::append( TQByteArray& that, const TQCString& str )
that.detach();
uint len1 = that.size();
uint len2 = str.size() - 1;
- if ( that.tqresize( len1 + len2, TQGArray::SpeedOptim ) )
+ if ( that.resize( len1 + len2, TQGArray::SpeedOptim ) )
memcpy( that.data() + len1, str.data(), len2 );
}
@@ -180,13 +180,13 @@ void KMail::Util::insert( TQByteArray& that, uint index, const char* s )
int nlen = olen + len;
if ( index >= olen ) { // insert after end of string
that.detach();
- if ( that.tqresize(nlen+index-olen, TQGArray::SpeedOptim ) ) {
+ if ( that.resize(nlen+index-olen, TQGArray::SpeedOptim ) ) {
memset( that.data()+olen, ' ', index-olen );
memcpy( that.data()+index, s, len );
}
} else {
that.detach();
- if ( that.tqresize(nlen, TQGArray::SpeedOptim ) ) { // normal insert
+ if ( that.resize(nlen, TQGArray::SpeedOptim ) ) { // normal insert
memmove( that.data()+index+len, that.data()+index, olen-index );
memcpy( that.data()+index, s, len );
}