summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/parse_xml.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-02-14 13:22:47 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-02-14 13:22:47 +0000
commitb67a0345014079ca4d6d2ffc95d55086abc5b96b (patch)
treed4cc57ded9a6b19796bd32974f3731414ffb014c /plugins/Variables/src/parse_xml.cpp
parent25359ca57da5cc1dd5d6e34ca7b5bd65353f092a (diff)
minor cleanup and typos (by Basil)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3600 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/src/parse_xml.cpp')
-rw-r--r--plugins/Variables/src/parse_xml.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/Variables/src/parse_xml.cpp b/plugins/Variables/src/parse_xml.cpp
index 954252d1d4..2a4a8a0a7b 100644
--- a/plugins/Variables/src/parse_xml.cpp
+++ b/plugins/Variables/src/parse_xml.cpp
@@ -52,8 +52,7 @@ void (*pXsltCleanupGlobals)(void);
pattern, subject
*/
static TCHAR *parseXslts(ARGUMENTSINFO *ai) {
- TCHAR *tszRes;
- xmlDocPtr doc, res, sdoc;
+ xmlDocPtr res;
xmlChar *xmlChRes = NULL;
int resLen;
@@ -66,9 +65,8 @@ static TCHAR *parseXslts(ARGUMENTSINFO *ai) {
log_debugA("calling xsltParseMemory");
- sdoc = pXmlParseMemory(szStyleSheet, strlen(szStyleSheet));
+ xmlDocPtr sdoc = pXmlParseMemory(szStyleSheet, strlen(szStyleSheet));
if (sdoc == NULL) {
-
return NULL;
}
@@ -82,7 +80,7 @@ static TCHAR *parseXslts(ARGUMENTSINFO *ai) {
}
log_debugA("calling xsltParseMemory");
- doc = pXmlParseMemory(szDoc, strlen(szDoc));
+ xmlDocPtr doc = pXmlParseMemory(szDoc, strlen(szDoc));
if (doc == NULL) {
log_debugA("calling xsltFreeDoc");
pXmlFreeDoc(sdoc);
@@ -118,7 +116,7 @@ static TCHAR *parseXslts(ARGUMENTSINFO *ai) {
log_debugA("calling mir_free");
mir_free(szDoc);
- tszRes = mir_a2t((char *)xmlChRes);
+ TCHAR *tszRes = mir_a2t((char *)xmlChRes);
log_debugA("calling xmlFree");
pXmlFree(xmlChRes);