forked from len0rd/rockbox
initialise the element->type value so TAG types dont accidently get VIEWPORT if it element->type == 0 at alloc time
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26825 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3f06273e7c
commit
35b09cb615
4 changed files with 12 additions and 1 deletions
|
@ -106,7 +106,8 @@ QString ParseTreeNode::genCode() const
|
|||
{
|
||||
switch(element->type)
|
||||
{
|
||||
|
||||
case UNKNOWN:
|
||||
break;
|
||||
case VIEWPORT:
|
||||
/* Generating the Viewport tag, if necessary */
|
||||
if(element->tag)
|
||||
|
@ -263,6 +264,8 @@ int ParseTreeNode::genHash() const
|
|||
hash += element->type;
|
||||
switch(element->type)
|
||||
{
|
||||
case UNKNOWN:
|
||||
break;
|
||||
case VIEWPORT:
|
||||
case LINE:
|
||||
case SUBLINES:
|
||||
|
@ -346,6 +349,8 @@ QVariant ParseTreeNode::data(int column) const
|
|||
{
|
||||
switch(element->type)
|
||||
{
|
||||
case UNKNOWN:
|
||||
return QObject::tr("Unknown");
|
||||
case VIEWPORT:
|
||||
return QObject::tr("Viewport");
|
||||
|
||||
|
@ -397,6 +402,7 @@ QVariant ParseTreeNode::data(int column) const
|
|||
{
|
||||
switch(element->type)
|
||||
{
|
||||
case UNKNOWN:
|
||||
case VIEWPORT:
|
||||
case LINE:
|
||||
case SUBLINES:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue