From cc892a6f191279b0fcf638e0c4d5efced3c2fe0f Mon Sep 17 00:00:00 2001 From: triton Date: Sat, 18 May 2013 17:00:21 +0100 Subject: [PATCH] Use the field's class as the field namespace. --- src/Parser/Parser.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp index cad03a24..7e601049 100644 --- a/src/Parser/Parser.cpp +++ b/src/Parser/Parser.cpp @@ -532,11 +532,8 @@ CppSharp::Field^ Parser::WalkFieldCXX(clang::FieldDecl* FD, CppSharp::Class^ Cla using namespace clang; using namespace clix; - auto NS = GetNamespace(FD); - assert(NS && "Expected a valid namespace"); - CppSharp::Field^ F = gcnew CppSharp::Field(); - F->Namespace = NS; + F->Namespace = Class; F->Name = marshalString(FD->getName()); auto TL = FD->getTypeSourceInfo()->getTypeLoc();