mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
format with astyle
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@278 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 4ae5ad688e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-02-06 (Sat, 06 Feb 2010)
This commit is contained in:
@@ -598,8 +598,7 @@ enum XML_Error XML_Parser::doContent(int startTagLevel, const ENCODING *enc, con
|
||||
XML_Char c=XML_T('\n');
|
||||
CharacterDataHandler(&c, 1);
|
||||
}
|
||||
else
|
||||
if (defaultHandler)
|
||||
else if (defaultHandler)
|
||||
reportDefault(enc, s, end);
|
||||
|
||||
if (!startTagLevel) return XML_ERROR_NO_ELEMENTS;
|
||||
|
@@ -83,8 +83,14 @@ XMLAttribute::XMLAttribute(XMLAttribute *prv, char *nam, char *val, XMLAttribute
|
||||
|
||||
XMLAttribute::~XMLAttribute()
|
||||
{
|
||||
if (name) { free(name); name=0; };
|
||||
if (value) { free(value); value=0; };
|
||||
if (name) {
|
||||
free(name);
|
||||
name=0;
|
||||
};
|
||||
if (value) {
|
||||
free(value);
|
||||
value=0;
|
||||
};
|
||||
|
||||
next=prev=0;
|
||||
}
|
||||
@@ -181,8 +187,14 @@ XMLTreeNode::~XMLTreeNode()
|
||||
DeleteAttributes();
|
||||
DeleteChildren();
|
||||
|
||||
if (type) { free(type); type=0; };
|
||||
if (data) { delete[] data; dataSize=0; };
|
||||
if (type) {
|
||||
free(type);
|
||||
type=0;
|
||||
};
|
||||
if (data) {
|
||||
delete[] data;
|
||||
dataSize=0;
|
||||
};
|
||||
|
||||
next=0;
|
||||
}
|
||||
@@ -368,7 +380,8 @@ void XMLTreeNode::DeleteAttributes()
|
||||
|
||||
while (a)
|
||||
{
|
||||
b=a->GetNext(); delete a;
|
||||
b=a->GetNext();
|
||||
delete a;
|
||||
a=b;
|
||||
}
|
||||
|
||||
@@ -384,7 +397,8 @@ void XMLTreeNode::DeleteChildren()
|
||||
|
||||
while (a)
|
||||
{
|
||||
b=a->next; delete a;
|
||||
b=a->next;
|
||||
delete a;
|
||||
a=b;
|
||||
}
|
||||
|
||||
@@ -400,7 +414,10 @@ void XMLTreeParser::StartElementHandler(const XML_Char *name, const XML_Char **p
|
||||
|
||||
if (a)
|
||||
{
|
||||
while (*a) { n->SetAttribute((char *) a[0], (char *) a[1]); a+=2; };
|
||||
while (*a) {
|
||||
n->SetAttribute((char *) a[0], (char *) a[1]);
|
||||
a+=2;
|
||||
};
|
||||
}
|
||||
|
||||
if (current)
|
||||
|
Reference in New Issue
Block a user