Created
November 1, 2014 01:28
-
-
Save dobrokot/aa88de74e0c685473a02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "uatraits/details/branch.hpp" | |
#include "uatraits/details/definition.hpp" | |
-#include "uatraits/details/hash_utils.hpp" | |
#include "uatraits/details/regex_definition.hpp" | |
#include "uatraits/details/static_definition.hpp" | |
#include "uatraits/details/string_definition.hpp" | |
@@ -181,7 +180,7 @@ | |
header = header.substr(0, header.length() - sizeof (to_strip) + 1); | |
} | |
- profiles_type::const_iterator pit = profiles_.find(md5(header)); | |
+ profiles_type::const_iterator pit = profiles_.find(header); | |
if (profiles_.end() != pit) { | |
for (std::map<std::string, std::string>::const_iterator mit = pit->second.begin(), | |
@@ -221,7 +220,7 @@ | |
xml_elems elems(root, "profile"); | |
for (xml_elems::iterator i = elems.begin(), end = elems.end(); i != end; ++i) { | |
- char const *id = xml_attr_text(*i, "id"); | |
+ char const *id = xml_attr_text(*i, "url"); | |
for (xmlNodePtr n = xmlFirstElementChild(*i); 0 != n; n = xmlNextElementSibling(n)) { | |
if (xmlStrncasecmp(n->name, (xmlChar const*) "define", sizeof("define")) == 0) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment