Skip to content

Commit

Permalink
Small path improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jan 28, 2024
1 parent e275383 commit 81fc277
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public IDLClassGeneratorParser(String basePackage, String headerCMD, IDLReader i
this.basePackage = basePackage;
this.idlReader = idlReader;
if(this.cppDir != null) {
this.cppDir = this.cppDir.replace("\\", "/");
this.cppDir = this.cppDir.replace("\\", "/").replace("//", "/");;
}
}

Expand Down Expand Up @@ -147,7 +147,7 @@ private HashMap<String, String> getClassCppPath() {
for(String path : filesFromDir) {
if(!path.endsWith(".h"))
continue;
path = path.replace("\\", "/");
path = path.replace("\\", "/").replace("//", "/");
String include = path.replace(cppDir, "");
if(include.startsWith("/")) {
include = include.replaceFirst("/", "");
Expand Down

0 comments on commit 81fc277

Please sign in to comment.