From e985f7e545f4739493965aad69bbecb136dc9346 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Jun 2011 19:02:47 +0000 Subject: TQt4 port kdewebdev This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kxsldbg/kxsldbgpart/libxsldbg/files.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'kxsldbg/kxsldbgpart/libxsldbg/files.cpp') diff --git a/kxsldbg/kxsldbgpart/libxsldbg/files.cpp b/kxsldbg/kxsldbgpart/libxsldbg/files.cpp index 73d3713b..df764b0b 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/files.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/files.cpp @@ -189,7 +189,7 @@ openTerminal(xmlChar * device) termName = xmlMemStrdup((char *) device); result = 1; } else { - xsldbgGenericErrorFunc(i18n("Error: Unable to open terminal %1.\n").arg(xsldbgText(termName))); + xsldbgGenericErrorFunc(i18n("Error: Unable to open terminal %1.\n").tqarg(xsldbgText(termName))); } } else { xsldbgGenericErrorFunc(i18n("Error: Did not previously open terminal.\n")); @@ -212,7 +212,7 @@ openTerminal(xmlChar * device) termName = xmlMemStrdup((char *) device); result = 1; } else { - xsldbgGenericErrorFunc(i18n("Error: Unable to open terminal %1.\n").arg(xsldbgText(device))); + xsldbgGenericErrorFunc(i18n("Error: Unable to open terminal %1.\n").tqarg(xsldbgText(device))); } } @@ -494,7 +494,7 @@ changeDir(const xmlChar * path) return result; /* out of memory ? */ if (xmlStrLen(expandedName) + 1 > sizeof(filesBuffer)) { - xsldbgGenericErrorFunc(i18n("Error: The file name \"%1\" is too long.\n").arg(xsldbgText(path))); + xsldbgGenericErrorFunc(i18n("Error: The file name \"%1\" is too long.\n").tqarg(xsldbgText(path))); return result; } @@ -518,10 +518,10 @@ changeDir(const xmlChar * path) } xmlFree(expandedName); /* this will always be valid time */ if (!result) { - xsldbgGenericErrorFunc(i18n("Error: Unable to change to directory %1.\n").arg(xsldbgText(path))); + xsldbgGenericErrorFunc(i18n("Error: Unable to change to directory %1.\n").tqarg(xsldbgText(path))); } else { if (xslDebugStatus != DEBUG_NONE) - xsldbgGenericErrorFunc(i18n("Changed to directory %1.\n").arg(xsldbgText(path))); + xsldbgGenericErrorFunc(i18n("Changed to directory %1.\n").tqarg(xsldbgText(path))); } return result; } @@ -549,7 +549,7 @@ filesLoadXmlFile(const xmlChar * path, FileTypeEnum fileType) case FILES_XMLFILE_TYPE: if (path && xmlStrLen(path)) { if (optionsGetIntOption(OPTIONS_SHELL)) { - xsldbgGenericErrorFunc(i18n("Setting XML Data file name to %1.\n").arg(xsldbgText(path))); + xsldbgGenericErrorFunc(i18n("Setting XML Data file name to %1.\n").tqarg(xsldbgText(path))); } optionsSetStringOption(OPTIONS_DATA_FILE_NAME, path); } @@ -561,7 +561,7 @@ filesLoadXmlFile(const xmlChar * path, FileTypeEnum fileType) case FILES_SOURCEFILE_TYPE: if (path && xmlStrLen(path)) { if (optionsGetIntOption(OPTIONS_SHELL)) { - xsldbgGenericErrorFunc(i18n("Setting stylesheet file name to %1.\n").arg(xsldbgText(path))); + xsldbgGenericErrorFunc(i18n("Setting stylesheet file name to %1.\n").tqarg(xsldbgText(path))); } optionsSetStringOption(OPTIONS_SOURCE_FILE_NAME, path); } @@ -578,7 +578,7 @@ filesLoadXmlFile(const xmlChar * path, FileTypeEnum fileType) stylePathName = (xmlChar *) xmlMemStrdup(docUrl); stylePathName[lastSlash - docUrl + 1] = '\0'; if (optionsGetIntOption(OPTIONS_SHELL)) { - xsldbgGenericErrorFunc(i18n("Setting stylesheet base path to %1.\n").arg(xsldbgText(stylePathName))); + xsldbgGenericErrorFunc(i18n("Setting stylesheet base path to %1.\n").tqarg(xsldbgText(stylePathName))); } } else { const char cwd[4] = { '.', PATHCHAR, '\0' }; @@ -939,7 +939,7 @@ filesEntityRef(xmlEntityPtr ent, xmlNodePtr firstNode, xmlNodePtr lastNode) /** * filesSetBaseUri: - * @node : Is valid and has a doc parent + * @node : Is valid and has a doc tqparent * @uri : Is Valid * * Set the base uri for this node. Function is used when xml file @@ -972,7 +972,7 @@ filesSetBaseUri(xmlNodePtr node, const xmlChar * uri) /** * filesGetBaseUri: - * @node : Is valid and has a doc parent + * @node : Is valid and has a doc tqparent * * Get a copy of the base uri for this node. Function is most usefull * used when xml file has external entities in its DTD @@ -1176,12 +1176,12 @@ filesSetEncoding(const char *encoding) if (!result) { xmlCharEncCloseFunc(stdoutEncoding); stdoutEncoding = NULL; - xsldbgGenericErrorFunc(i18n("Unable to initialize encoding %1.").arg(xsldbgText(encoding))); + xsldbgGenericErrorFunc(i18n("Unable to initialize encoding %1.").tqarg(xsldbgText(encoding))); } else optionsSetStringOption(OPTIONS_ENCODING, (xmlChar *) encoding); } else { - xsldbgGenericErrorFunc(i18n("Invalid encoding %1.\n").arg(xsldbgText(encoding))); + xsldbgGenericErrorFunc(i18n("Invalid encoding %1.\n").tqarg(xsldbgText(encoding))); } } else { /* close encoding and use UTF-8 */ @@ -1360,7 +1360,7 @@ xmlChar *filesURItoFileName(const xmlChar* uri) result = NULL; } }else{ - xsldbgGenericErrorFunc(i18n("Error: Unable to convert %1 to local file name.\n").arg(xsldbgText(uri))); + xsldbgGenericErrorFunc(i18n("Error: Unable to convert %1 to local file name.\n").tqarg(xsldbgText(uri))); } -- cgit v1.2.1