Browse Source

Minor code cleanup.

pull/123/head
triton 12 years ago
parent
commit
8ab7fb4cc7
  1. 10
      src/Generator/Passes/FunctionToInstanceMethodPass.cs

10
src/Generator/Passes/FunctionToInstanceMethodPass.cs

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
using System;
using System.Linq;
using System.Linq;
using CppSharp.AST;
using CppSharp.Generators;
@ -42,7 +41,7 @@ namespace CppSharp.Passes @@ -42,7 +41,7 @@ namespace CppSharp.Passes
function.ExplicityIgnored = true;
// Create a new fake method so it acts as an instance method.
var method = new Method()
var method = new Method
{
Namespace = @class,
OriginalNamespace = function.Namespace,
@ -79,10 +78,7 @@ namespace CppSharp.Passes @@ -79,10 +78,7 @@ namespace CppSharp.Passes
return true;
}
if (classParam.Type.IsTagDecl(out @class))
return true;
return false;
return classParam.Type.IsTagDecl(out @class);
}
}
}

Loading…
Cancel
Save