Skip to content

Instantly share code, notes, and snippets.

@dobrokot
Created November 1, 2014 01:28
Show Gist options
  • Save dobrokot/aa88de74e0c685473a02 to your computer and use it in GitHub Desktop.
Save dobrokot/aa88de74e0c685473a02 to your computer and use it in GitHub Desktop.
#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