mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
convert node type from enum to int to silence gcc warning about exceeding the maximum value of the enum
This commit is contained in:
parent
5881521c04
commit
9eeb67aa3e
1 changed files with 16 additions and 19 deletions
|
@ -3,8 +3,6 @@
|
||||||
|
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
// C++ DOM definition
|
// C++ DOM definition
|
||||||
//
|
|
||||||
// $Id$
|
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
#include <DOM/Proxy.hpp>
|
#include <DOM/Proxy.hpp>
|
||||||
#include <DOM/DOMException.hpp>
|
#include <DOM/DOMException.hpp>
|
||||||
|
@ -30,23 +28,22 @@ template<class stringT, class string_adaptorT> class Node_impl;
|
||||||
|
|
||||||
class Node_base
|
class Node_base
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum Type
|
typedef int Type;
|
||||||
{
|
|
||||||
ELEMENT_NODE = 1,
|
static const int ELEMENT_NODE = 1;
|
||||||
ATTRIBUTE_NODE,
|
static const int ATTRIBUTE_NODE = 2;
|
||||||
TEXT_NODE,
|
static const int TEXT_NODE = 3;
|
||||||
CDATA_SECTION_NODE,
|
static const int CDATA_SECTION_NODE = 4;
|
||||||
ENTITY_REFERENCE_NODE,
|
static const int ENTITY_REFERENCE_NODE = 5;
|
||||||
ENTITY_NODE,
|
static const int ENTITY_NODE = 6;
|
||||||
PROCESSING_INSTRUCTION_NODE,
|
static const int PROCESSING_INSTRUCTION_NODE = 7;
|
||||||
COMMENT_NODE,
|
static const int COMMENT_NODE = 8;
|
||||||
DOCUMENT_NODE,
|
static const int DOCUMENT_NODE = 9;
|
||||||
DOCUMENT_TYPE_NODE,
|
static const int DOCUMENT_TYPE_NODE = 10;
|
||||||
DOCUMENT_FRAGMENT_NODE,
|
static const int DOCUMENT_FRAGMENT_NODE = 11;
|
||||||
NOTATION_NODE,
|
static const int NOTATION_NODE = 12;
|
||||||
MAX_TYPE
|
static const int MAX_TYPE = 13;
|
||||||
}; // Type
|
|
||||||
}; // class Node_base
|
}; // class Node_base
|
||||||
|
|
||||||
/////////////////////////////////////////////////
|
/////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Reference in a new issue