From 9445f97b426e97c6ce46de18fba4030da45d56df Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:36:38 -0600 Subject: Rename old tq methods that no longer need a unique name --- klinkstatus/src/utils/xsl.cpp | 46 +++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'klinkstatus/src/utils/xsl.cpp') diff --git a/klinkstatus/src/utils/xsl.cpp b/klinkstatus/src/utils/xsl.cpp index 4a04834b..a44ac475 100644 --- a/klinkstatus/src/utils/xsl.cpp +++ b/klinkstatus/src/utils/xsl.cpp @@ -141,7 +141,7 @@ TQString KopeteXSLThread::xsltTransform( const TQString &xmlString, xsltStyleshe { if ( styleSheet ) { - static TQCString appPath( TQString::tqfromLatin1("\"%1\"").tqarg( KApplication::kApplication()->dirs()->findDirs("appdata", TQString::tqfromLatin1("styles/data") ).front() ).utf8() ); + static TQCString appPath( TQString::fromLatin1("\"%1\"").tqarg( KApplication::kApplication()->dirs()->findDirs("appdata", TQString::fromLatin1("styles/data") ).front() ).utf8() ); static const char* params[3] = { "appdata", @@ -235,7 +235,7 @@ void XSLT::setXSLT( const TQString &_document ) // Actually, since we need to parse into a libxml2 document anyway, this whole // nonsense could be replaced with some simple XPath expressions - JK // - TQRegExp elementMatch( TQString::tqfromLatin1( "(.*)" ) ); + TQRegExp elementMatch( TQString::fromLatin1( "(.*)" ) ); elementMatch.setMinimal( true ); TQString document = _document; int pos; @@ -261,21 +261,21 @@ void XSLT::setXSLT( const TQString &_document ) { prependPercent = false; - if ( *it == TQString::tqfromLatin1( "TIME" ) ) + if ( *it == TQString::fromLatin1( "TIME" ) ) { - trans += TQString::tqfromLatin1( "" ); + trans += TQString::fromLatin1( "" ); } - else if ( *it == TQString::tqfromLatin1( "TIMESTAMP" ) ) + else if ( *it == TQString::fromLatin1( "TIMESTAMP" ) ) { - trans += TQString::tqfromLatin1( "" ); + trans += TQString::fromLatin1( "" ); } - else if ( *it == TQString::tqfromLatin1( "FORMATTEDTIMESTAMP" ) ) + else if ( *it == TQString::fromLatin1( "FORMATTEDTIMESTAMP" ) ) { - trans += TQString::tqfromLatin1( "" ); + trans += TQString::fromLatin1( "" ); } - else if ( *it == TQString::tqfromLatin1( "FROM_CONTACT_DISPLAYNAME" ) ) + else if ( *it == TQString::fromLatin1( "FROM_CONTACT_DISPLAYNAME" ) ) { - trans += TQString::tqfromLatin1( "" + trans += TQString::fromLatin1( "" "" "" "" @@ -290,9 +290,9 @@ void XSLT::setXSLT( const TQString &_document ) "" "" ); } - else if ( *it == TQString::tqfromLatin1( "TO_CONTACT_DISPLAYNAME" ) ) + else if ( *it == TQString::fromLatin1( "TO_CONTACT_DISPLAYNAME" ) ) { - trans += TQString::tqfromLatin1( "" + trans += TQString::fromLatin1( "" "" "" "" @@ -307,37 +307,37 @@ void XSLT::setXSLT( const TQString &_document ) "" "" ); } - else if ( *it == TQString::tqfromLatin1( "FROM_METACONTACT_DISPLAYNAME" ) ) + else if ( *it == TQString::fromLatin1( "FROM_METACONTACT_DISPLAYNAME" ) ) { - trans += TQString::tqfromLatin1( "" + trans += TQString::fromLatin1( "" "" "" "" "" ); } - else if ( *it == TQString::tqfromLatin1( "TO_METACONTACT_DISPLAYNAME" ) ) + else if ( *it == TQString::fromLatin1( "TO_METACONTACT_DISPLAYNAME" ) ) { - trans += TQString::tqfromLatin1( "" + trans += TQString::fromLatin1( "" "" "" "" "" ); } - else if ( *it == TQString::tqfromLatin1( "FROM_CONTACT_ID" ) ) + else if ( *it == TQString::fromLatin1( "FROM_CONTACT_ID" ) ) { - trans += TQString::tqfromLatin1( "" + trans += TQString::fromLatin1( "" "" "" ); } - else if ( *it == TQString::tqfromLatin1( "TO_CONTACT_ID" ) ) + else if ( *it == TQString::fromLatin1( "TO_CONTACT_ID" ) ) { - trans += TQString::tqfromLatin1( "" + trans += TQString::fromLatin1( "" "" "" ); } - else if ( *it == TQString::tqfromLatin1( "BODY" ) ) + else if ( *it == TQString::fromLatin1( "BODY" ) ) { - trans += TQString::tqfromLatin1( "" ); + trans += TQString::fromLatin1( "" ); } else { @@ -387,7 +387,7 @@ void XSLT::setXSLT( const TQString &_document ) } if( !flags.isEmpty() ) - setProperty("flags", flags.join( TQString::tqfromLatin1("|") ) ); + setProperty("flags", flags.join( TQString::fromLatin1("|") ) ); } else { -- cgit v1.2.1