diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-10 12:04:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-10 12:04:33 +0300 |
commit | db7a78a2be7849f47c81c907ad0710ece66018b7 (patch) | |
tree | 6096ad3ff23b4739ecd83e3bacd6d4b633561b10 /intern/cycles/graph/node_xml.cpp | |
parent | a466d7ae248b2807b4e2f8693b458d3da509e9bc (diff) |
Cycles: Fix compilation error with latest OIIO
There was some changes about namespaces, which causes ambiguities.
Replaces using namespace with an explicit symbols we need. Is good idea to NOT
pull in the whole namespace anyway!
Diffstat (limited to 'intern/cycles/graph/node_xml.cpp')
-rw-r--r-- | intern/cycles/graph/node_xml.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/intern/cycles/graph/node_xml.cpp b/intern/cycles/graph/node_xml.cpp index aad2740ffc0..d26b3b2c2c8 100644 --- a/intern/cycles/graph/node_xml.cpp +++ b/intern/cycles/graph/node_xml.cpp @@ -33,7 +33,7 @@ static const char *xml_write_boolean(bool value) } template<int VECTOR_SIZE, typename T> -static void xml_read_float_array(T& value, pugi::xml_attribute attr) +static void xml_read_float_array(T& value, xml_attribute attr) { vector<string> tokens; string_split(tokens, attr.value()); @@ -51,9 +51,9 @@ static void xml_read_float_array(T& value, pugi::xml_attribute attr) } } -void xml_read_node(XMLReader& reader, Node *node, pugi::xml_node xml_node) +void xml_read_node(XMLReader& reader, Node *node, xml_node xml_node) { - pugi::xml_attribute name_attr = xml_node.attribute("name"); + xml_attribute name_attr = xml_node.attribute("name"); if(name_attr) { node->name = ustring(name_attr.value()); } @@ -66,7 +66,7 @@ void xml_read_node(XMLReader& reader, Node *node, pugi::xml_node xml_node) continue; } - pugi::xml_attribute attr = xml_node.attribute(socket.name.c_str()); + xml_attribute attr = xml_node.attribute(socket.name.c_str()); if(!attr) { continue; @@ -254,9 +254,9 @@ void xml_read_node(XMLReader& reader, Node *node, pugi::xml_node xml_node) reader.node_map[node->name] = node; } -pugi::xml_node xml_write_node(Node *node, pugi::xml_node xml_root) +xml_node xml_write_node(Node *node, xml_node xml_root) { - pugi::xml_node xml_node = xml_root.append_child(node->type->name.c_str()); + xml_node xml_node = xml_root.append_child(node->type->name.c_str()); xml_node.append_attribute("name") = node->name.c_str(); @@ -271,7 +271,7 @@ pugi::xml_node xml_write_node(Node *node, pugi::xml_node xml_root) continue; } - pugi::xml_attribute attr = xml_node.append_attribute(socket.name.c_str()); + xml_attribute attr = xml_node.append_attribute(socket.name.c_str()); switch(socket.type) { |