Browse Source

Renamed variable to conventions.

pull/1/head
triton 13 years ago
parent
commit
49c7a9b453
  1. 8
      src/Generator/Transforms/Transform.cs

8
src/Generator/Transforms/Transform.cs

@ -22,7 +22,7 @@ namespace Cxxi.Passes
string GetIncludePath(string filePath) string GetIncludePath(string filePath)
{ {
string includePath = filePath; string includePath = filePath;
string ShortestIncludePath = filePath; string shortestIncludePath = filePath;
foreach (var path in Options.IncludeDirs) foreach (var path in Options.IncludeDirs)
{ {
@ -31,11 +31,11 @@ namespace Cxxi.Passes
string inc = filePath.Substring(path.Length); string inc = filePath.Substring(path.Length);
if (inc.Length < includePath.Length && inc.Length < ShortestIncludePath.Length) if (inc.Length < includePath.Length && inc.Length < shortestIncludePath.Length)
ShortestIncludePath = inc; shortestIncludePath = inc;
} }
return "..\\" + ShortestIncludePath.TrimStart(new char[] { '\\', '/' }); return "..\\" + shortestIncludePath.TrimStart(new char[] { '\\', '/' });
} }
void TransformModule(TranslationUnit unit) void TransformModule(TranslationUnit unit)

Loading…
Cancel
Save