summaryrefslogtreecommitdiffstats
path: root/src/translators/xslthandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/translators/xslthandler.cpp')
-rw-r--r--src/translators/xslthandler.cpp10
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;
}
}