summaryrefslogtreecommitdiffstats
path: root/libkmime/kmime_headers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkmime/kmime_headers.cpp')
-rw-r--r--libkmime/kmime_headers.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libkmime/kmime_headers.cpp b/libkmime/kmime_headers.cpp
index a677cdd75..40a016343 100644
--- a/libkmime/kmime_headers.cpp
+++ b/libkmime/kmime_headers.cpp
@@ -811,7 +811,7 @@ TQDateTime Date::qdt()
int Date::ageInDays()
{
- TQDate today=TQDate::tqcurrentDate();
+ TQDate today=TQDate::currentDate();
return ( qdt().date().daysTo(today) );
}
@@ -1107,10 +1107,10 @@ TQCString References::next()
TQCString ret;
if(p_os!=0) {
- pos2=r_ef.findRev('>', p_os);
+ pos2=r_ef.tqfindRev('>', p_os);
p_os=0;
if(pos2!=-1) {
- pos1=r_ef.findRev('<', pos2);
+ pos1=r_ef.tqfindRev('<', pos2);
if(pos1!=-1) {
ret=r_ef.mid(pos1, pos2-pos1+1);
p_os=pos1;
@@ -1129,7 +1129,7 @@ TQCString References::at(unsigned int i)
while(pos1!=-1 && cnt < i+1) {
pos2=pos1-1;
- pos1=r_ef.findRev('<', pos2);
+ pos1=r_ef.tqfindRev('<', pos2);
cnt++;
}
@@ -1174,7 +1174,7 @@ void References::append(const TQCString &s)
for (int i=1;i<=3;i++) { // include the last three ids
if (!lst.isEmpty()) {
temp = lst.last();
- r_ef.insert(insPos,(TQString(" %1").arg(temp)).latin1());
+ r_ef.insert(insPos,(TQString(" %1").tqarg(temp)).latin1());
lst.remove(temp);
} else
break;
@@ -1183,7 +1183,7 @@ void References::append(const TQCString &s)
while (!lst.isEmpty()) { // now insert the rest, up to 1000 characters
temp = lst.last();
if ((15+r_ef.length()+temp.length())<1000) {
- r_ef.insert(insPos,(TQString(" %1").arg(temp)).latin1());
+ r_ef.insert(insPos,(TQString(" %1").tqarg(temp)).latin1());
lst.remove(temp);
} else
return;
@@ -1475,7 +1475,7 @@ void ContentType::setParameter(const TQCString &name, const TQCString &value, bo
else
param=name+"="+value;
- pos1=p_arams.tqfind(name, 0, false);
+ pos1=p_arams.tqfind(name.data(), 0, false);
if(pos1==-1) {
p_arams+="; "+param;
}
@@ -1484,7 +1484,7 @@ void ContentType::setParameter(const TQCString &name, const TQCString &value, bo
if(pos2==-1)
pos2=p_arams.length();
p_arams.remove(pos1, pos2-pos1);
- p_arams.insert(pos1, param);
+ p_arams.insert(pos1, param.data());
}
}