summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-09-20 16:51:14 -0400
committerPeter LaFosse <peter@vector35.com>2018-09-20 16:51:14 -0400
commitf48203de0acafb1d981d56c79d0edff921102065 (patch)
tree04e3a94f4756fc4c00e64346ceec660bf25fa4b0 /type.cpp
parent74a8547853dd66fe62d2e75b93c1b723eb6f69cf (diff)
Adding NameSpace tokens and plumbing through some namespce apis
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/type.cpp b/type.cpp
index 37b8f131..8ac6ded4 100644
--- a/type.cpp
+++ b/type.cpp
@@ -385,6 +385,12 @@ NameSpace NameSpace::operator+(const NameSpace& other) const
}
+bool NameSpace::IsDefaultNameSpace() const
+{
+ return ((GetString() == DEFAULT_INTERNAL_NAMESPACE) || (GetString() == DEFAULT_EXTERNAL_NAMESPACE));
+}
+
+
BNNameSpace NameSpace::GetAPIObject() const
{
BNNameSpace result;
@@ -406,7 +412,7 @@ void NameSpace::FreeAPIObject(BNNameSpace* name)
}
-NameSpace NameSpace::FromAPIObject(BNNameSpace* name)
+NameSpace NameSpace::FromAPIObject(const BNNameSpace* name)
{
NameSpace result;
for (size_t i = 0; i < name->nameCount; i++)