Internal iterator constructors are now private, added empty document test
git-svn-id: http://pugixml.googlecode.com/svn/trunk@403 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
14bda69d0d
commit
9441757ef6
@ -1520,6 +1520,9 @@ namespace pugi
|
|||||||
/// \internal Initializing ctor
|
/// \internal Initializing ctor
|
||||||
explicit xml_node_iterator(xml_node_struct* ref);
|
explicit xml_node_iterator(xml_node_struct* ref);
|
||||||
|
|
||||||
|
/// \internal Initializing ctor (for past-the-end)
|
||||||
|
xml_node_iterator(xml_node_struct* ref, xml_node_struct* prev);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Iterator traits
|
* Iterator traits
|
||||||
@ -1545,14 +1548,6 @@ namespace pugi
|
|||||||
*/
|
*/
|
||||||
xml_node_iterator(const xml_node& node);
|
xml_node_iterator(const xml_node& node);
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializing ctor (for past-the-end)
|
|
||||||
*
|
|
||||||
* \param ref - should be 0
|
|
||||||
* \param prev - previous node
|
|
||||||
*/
|
|
||||||
xml_node_iterator(xml_node_struct* ref, xml_node_struct* prev);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if this iterator is equal to \a rhs
|
* Check if this iterator is equal to \a rhs
|
||||||
*
|
*
|
||||||
@ -1627,6 +1622,9 @@ namespace pugi
|
|||||||
/// \internal Initializing ctor
|
/// \internal Initializing ctor
|
||||||
explicit xml_attribute_iterator(xml_attribute_struct* ref);
|
explicit xml_attribute_iterator(xml_attribute_struct* ref);
|
||||||
|
|
||||||
|
/// \internal Initializing ctor (for past-the-end)
|
||||||
|
xml_attribute_iterator(xml_attribute_struct* ref, xml_attribute_struct* prev);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Iterator traits
|
* Iterator traits
|
||||||
@ -1652,14 +1650,6 @@ namespace pugi
|
|||||||
*/
|
*/
|
||||||
xml_attribute_iterator(const xml_attribute& node);
|
xml_attribute_iterator(const xml_attribute& node);
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializing ctor (for past-the-end)
|
|
||||||
*
|
|
||||||
* \param ref - should be 0
|
|
||||||
* \param prev - previous node
|
|
||||||
*/
|
|
||||||
xml_attribute_iterator(xml_attribute_struct* ref, xml_attribute_struct* prev);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if this iterator is equal to \a rhs
|
* Check if this iterator is equal to \a rhs
|
||||||
*
|
*
|
||||||
|
|||||||
@ -15,6 +15,12 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
TEST(document_create_empty)
|
||||||
|
{
|
||||||
|
pugi::xml_document doc;
|
||||||
|
CHECK_NODE(doc, STR(""));
|
||||||
|
}
|
||||||
|
|
||||||
TEST(document_create)
|
TEST(document_create)
|
||||||
{
|
{
|
||||||
pugi::xml_document doc;
|
pugi::xml_document doc;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user