Permalink
Browse files

rename Namespace::URI => Namespace::ID

  • Loading branch information...
0xfeedface committed Mar 24, 2014
1 parent 3e0107d commit 3775ca38d8d0cc360590c0935fb2b7fc66afce18
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/namespace.h
  2. +1 −1 src/parser_wrapper.cc
  3. +1 −1 src/serializer.cc
View
@@ -24,9 +24,9 @@ class Namespace {
explicit Namespace(raptor_namespace const* ns)
: URI_(raptor_namespace_get_uri(ns)),
prefix_(reinterpret_cast<const char*>(raptor_namespace_get_prefix(ns))) {}
URI const& URI() const { return URI_; }
URI const& ID() const { return URI_; }
std::string const& prefix() const { return prefix_; }
private:
class URI URI_;
URI URI_;
std::string prefix_;
};
View
@@ -202,7 +202,7 @@ ParserWrapper::ParserWrapper(v8::Handle<v8::Value> syntaxName)
if (!namespaceHandler_.IsEmpty()) {
v8::HandleScope scope;
const unsigned argc = 2;
std::string namespaceURI(nspace.URI());
std::string namespaceURI(nspace.ID());
v8::Local<v8::Value> argv[argc] {
v8::Local<v8::Value>::New(v8::String::New(namespaceURI.data(), namespaceURI.length())),
v8::Local<v8::Value>::New(v8::String::New(nspace.prefix().data(), nspace.prefix().length()))
View
@@ -58,7 +58,7 @@ void Serializer::setEndHandler(end_handler_t const& handler)
void Serializer::setNamespace(Namespace const& nspace)
{
raptor_serializer_set_namespace(serializer_,
nspace.URI(),
nspace.ID(),
reinterpret_cast<byte_t const*>(nspace.prefix().c_str()));
}

0 comments on commit 3775ca3

Please sign in to comment.