Browse Source

Simplify CheckForDuplicates, decl is never a PreprocessedEntity.

pull/719/head
Joao Matos 9 years ago
parent
commit
54b586d0d0
  1. 5
      src/Parser/ASTConverter.cs

5
src/Parser/ASTConverter.cs

@ -882,10 +882,7 @@ namespace CppSharp @@ -882,10 +882,7 @@ namespace CppSharp
bool CheckForDuplicates(Declaration decl)
{
if (decl.OriginalPtr.ToPointer() == (void*) (0x1))
return false;
return !(decl is PreprocessedEntity);
return decl.OriginalPtr.ToPointer() != (void*)(0x1);
}
void VisitDeclaration(Declaration decl, AST.Declaration _decl)

Loading…
Cancel
Save