Saner determination of a declared type's name (now short + full name)
at the time the type is introduced to a scope.
diff --git a/Interface.cpp b/Interface.cpp
index 9056e72..89bd10e 100644
--- a/Interface.cpp
+++ b/Interface.cpp
@@ -5,9 +5,8 @@
namespace android {
-Interface::Interface(const char *name, Type *super)
- : Scope(name),
- mSuperType(super) {
+Interface::Interface(Type *super)
+ : mSuperType(super) {
}
void Interface::addMethod(Method *method) {
@@ -28,7 +27,7 @@
std::string Interface::getCppType(StorageMode mode, std::string *extra) const {
extra->clear();
- const std::string base = "::android::sp<" + name() + ">";
+ const std::string base = "::android::sp<" + fullName() + ">";
switch (mode) {
case StorageMode_Stack: