summaryrefslogtreecommitdiffstats
path: root/kbugbuster/backend/bugdetails.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbugbuster/backend/bugdetails.cpp')
-rw-r--r--kbugbuster/backend/bugdetails.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kbugbuster/backend/bugdetails.cpp b/kbugbuster/backend/bugdetails.cpp
index d1ce4666..5dcfbcd4 100644
--- a/kbugbuster/backend/bugdetails.cpp
+++ b/kbugbuster/backend/bugdetails.cpp
@@ -35,7 +35,7 @@ BugDetails::~BugDetails()
TQString BugDetails::version() const
{
if ( !m_impl )
- return TQString::null;
+ return TQString();
return m_impl->version;
}
@@ -43,7 +43,7 @@ TQString BugDetails::version() const
TQString BugDetails::source() const
{
if ( !m_impl )
- return TQString::null;
+ return TQString();
return m_impl->source;
}
@@ -51,7 +51,7 @@ TQString BugDetails::source() const
TQString BugDetails::compiler() const
{
if ( !m_impl )
- return TQString::null;
+ return TQString();
return m_impl->compiler;
}
@@ -59,7 +59,7 @@ TQString BugDetails::compiler() const
TQString BugDetails::os() const
{
if ( !m_impl )
- return TQString::null;
+ return TQString();
return m_impl->os;
}
@@ -79,7 +79,7 @@ int BugDetails::age() const
if ( !m_impl )
return 0;
- return submissionDate().daysTo( TQDateTime::currentDateTime() );
+ return submissionDate().daysTo( TQDateTime::tqcurrentDateTime() );
}
BugDetailsPart::List BugDetails::parts() const
@@ -181,7 +181,7 @@ TQValueList<BugDetails::Attachment> BugDetails::extractAttachments( const TQStri
kdDebug() << "BugDetails::extractAttachments found header " << *rit << endl;
#endif
// Taken from libkdenetwork/kmime_headers.cpp
- int pos=header.find("filename=", 0, false);
+ int pos=header.tqfind("filename=", 0, false);
TQString fn;
if(pos>-1) {
pos+=9;
@@ -226,12 +226,12 @@ TQValueList<BugDetails::Attachment> BugDetails::extractAttachments( const TQStri
break;
if ( line == boundary+"--" ) // end of last attachment
{
- boundary = TQString::null;
+ boundary = TQString();
break;
}
contents += line; // no newline, because of linebreaking between <br and />
}
- contents = contents.replace( TQRegExp("<br */>"), TQString::null );
+ contents = contents.tqreplace( TQRegExp("<br */>"), TQString() );
#ifdef DEBUG_EXTRACT
kdDebug() << "BugDetails::extractAttachments contents=***\n" << contents << "\n***" << endl;
#endif
@@ -241,7 +241,7 @@ TQValueList<BugDetails::Attachment> BugDetails::extractAttachments( const TQStri
KCodecs::base64Decode( contents.local8Bit(), a.contents /*out*/ );
else
//KCodecs::uudecode( contents.local8Bit(), a.contents /*out*/ );
- KMessageBox::information( 0, i18n("Attachment %1 could not be decoded.\nEncoding: %2").arg(filename).arg(encoding) );
+ KMessageBox::information( 0, i18n("Attachment %1 could not be decoded.\nEncoding: %2").tqarg(filename).tqarg(encoding) );
#ifdef DEBUG_EXTRACT
kdDebug() << "Result: ***\n" << TQCString( a.contents.data(), a.contents.size()+1 ) << "\n*+*" << endl;
#endif