diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:51 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:51 -0600 |
commit | 2781e27b871150395a5a82e221684108641002b2 (patch) | |
tree | 57f4d7c01a48faef1a840fbe0de8f4ec1e5f606f /src/translators/xslthandler.cpp | |
parent | 031454e56009d576589c28757f6c6fcf4884095e (diff) | |
download | tellico-2781e27b871150395a5a82e221684108641002b2.tar.gz tellico-2781e27b871150395a5a82e221684108641002b2.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 031454e56009d576589c28757f6c6fcf4884095e.
Diffstat (limited to 'src/translators/xslthandler.cpp')
-rw-r--r-- | src/translators/xslthandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/translators/xslthandler.cpp b/src/translators/xslthandler.cpp index b7acb1f..853f6a6 100644 --- a/src/translators/xslthandler.cpp +++ b/src/translators/xslthandler.cpp @@ -17,7 +17,7 @@ #include "../tellico_utils.h" #include <tqdom.h> -#include <textcodec.h> +#include <tqtextcodec.h> #include <kurl.h> @@ -43,7 +43,7 @@ static int writeToTQString(void* context, const char* buffer, int len) { static void closeTQString(void* context) { TQString* t = static_cast<TQString*>(context); - *t += TQString::fromLatin1("\n"); + *t += TQString::tqfromLatin1("\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::fromLatin1("encoding"))) { - if(!pi.data().lower().contains(TQString::fromLatin1("utf-8"))) { + if(pi.data().lower().contains(TQString::tqfromLatin1("encoding"))) { + if(!pi.data().lower().contains(TQString::tqfromLatin1("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::fromLatin1(TQTextCodec::codecForLocale()->name()); - e.setAttribute(TQString::fromLatin1("encoding"), encoding); + const TQString encoding = TQString::tqfromLatin1(TQTextCodec::codecForLocale()->name()); + e.setAttribute(TQString::tqfromLatin1("encoding"), encoding); break; } } |