diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:15:24 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:15:24 -0600 |
commit | 8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch) | |
tree | 55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/translators/xslthandler.cpp | |
parent | 2781e27b871150395a5a82e221684108641002b2 (diff) | |
download | tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/translators/xslthandler.cpp')
-rw-r--r-- | src/translators/xslthandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<TQString*>(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; } } |