Fix nested structure/union name handling.
Local names must be assigned before processing the body.
Change-Id: I9c3e3d4b7575c612148aea89bbd424e59e3c0604
diff --git a/NamedType.cpp b/NamedType.cpp
index ddefff7..d3b48f2 100644
--- a/NamedType.cpp
+++ b/NamedType.cpp
@@ -2,16 +2,14 @@
namespace android {
-NamedType::NamedType() {}
+NamedType::NamedType(const char *localName)
+ : mLocalName(localName) {
+}
bool NamedType::isNamedType() const {
return true;
}
-void NamedType::setLocalName(const std::string &localName) {
- mLocalName = localName;
-}
-
void NamedType::setFullName(const FQName &fullName) {
mFullName = fullName;
}