From 8d9b90ca794ffabf151719c2edebe9278a2d3f36 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:15:24 -0600 Subject: Rename old tq methods that no longer need a unique name --- src/translators/xslthandler.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/translators/xslthandler.cpp') diff --git a/src/translators/xslthandler.cpp b/src/translators/xslthandler.cpp index 853f6a6..98f6527 100644 --- a/src/translators/xslthandler.cpp +++ b/src/translators/xslthandler.cpp @@ -43,7 +43,7 @@ static int writeToTQString(void* context, const char* buffer, int len) { static void closeTQString(void* context) { TQString* t = static_cast(context); - *t += TQString::tqfromLatin1("\n"); + *t += TQString::fromLatin1("\n"); } using Tellico::XSLTHandler; @@ -151,8 +151,8 @@ void XSLTHandler::setXSLTDoc(const TQDomDocument& dom_, const TQCString& xsltFil for(uint j = 0; j < childs.count(); ++j) { if(childs.item(j).isProcessingInstruction()) { TQDomProcessingInstruction pi = childs.item(j).toProcessingInstruction(); - if(pi.data().lower().contains(TQString::tqfromLatin1("encoding"))) { - if(!pi.data().lower().contains(TQString::tqfromLatin1("utf-8"))) { + if(pi.data().lower().contains(TQString::fromLatin1("encoding"))) { + if(!pi.data().lower().contains(TQString::fromLatin1("utf-8"))) { utf8 = false; // } else { // myDebug() << "XSLTHandler::setXSLTDoc() - PI = " << pi.data() << endl; @@ -258,8 +258,8 @@ TQDomDocument& XSLTHandler::setLocaleEncoding(TQDomDocument& dom_) { for(unsigned j = 0; j < childs.count(); ++j) { if(childs.item(j).isElement() && childs.item(j).nodeName() == Latin1Literal("xsl:output")) { TQDomElement e = childs.item(j).toElement(); - const TQString encoding = TQString::tqfromLatin1(TQTextCodec::codecForLocale()->name()); - e.setAttribute(TQString::tqfromLatin1("encoding"), encoding); + const TQString encoding = TQString::fromLatin1(TQTextCodec::codecForLocale()->name()); + e.setAttribute(TQString::fromLatin1("encoding"), encoding); break; } } -- cgit v1.2.1