Skip to content

Commit bd3ccec

Browse files
arnetheduck@gmail.comarnetheduck@gmail.com
authored andcommitted
fix header ext path
1 parent 071c9b7 commit bd3ccec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugin/src/se/arnetheduck/j2c/transform/Transformer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public void write(UnitInfo ui, IPath unitRoot, EnumDeclaration node) {
310310
e.printStackTrace();
311311
}
312312

313-
HeaderWriter hw = new HeaderWriter(root, this, ui, typeInfo);
313+
HeaderWriter hw = new HeaderWriter(unitRoot, this, ui, typeInfo);
314314
try {
315315
hw.write(node);
316316
} catch (Exception e) {
@@ -330,7 +330,7 @@ public void write(UnitInfo ui, IPath unitRoot,
330330
e.printStackTrace();
331331
}
332332

333-
HeaderWriter hw = new HeaderWriter(root, this, ui, typeInfo);
333+
HeaderWriter hw = new HeaderWriter(unitRoot, this, ui, typeInfo);
334334
try {
335335
hw.write(node);
336336
} catch (Exception e) {
@@ -350,7 +350,7 @@ public void write(UnitInfo ui, IPath unitRoot, TypeDeclaration node) {
350350
e.printStackTrace();
351351
}
352352

353-
HeaderWriter hw = new HeaderWriter(root, this, ui, typeInfo);
353+
HeaderWriter hw = new HeaderWriter(unitRoot, this, ui, typeInfo);
354354
try {
355355
hw.write(node);
356356
} catch (Exception e) {
@@ -371,7 +371,7 @@ public void write(UnitInfo ui, IPath unitRoot,
371371
e.printStackTrace();
372372
}
373373

374-
HeaderWriter hw = new HeaderWriter(root, this, ui, typeInfo);
374+
HeaderWriter hw = new HeaderWriter(unitRoot, this, ui, typeInfo);
375375
try {
376376
hw.write(node);
377377
} catch (Exception e) {

0 commit comments

Comments
 (0)