Browse Source

pastojs: less hints

git-svn-id: trunk@43332 -
Mattias Gaertner 5 years ago
parent
commit
2b5c904b2d

+ 1 - 0
packages/pastojs/src/pas2jshtmlresources.pp

@@ -97,6 +97,7 @@ end;
 procedure THTMLResourceLinkHandler.DoneUnit(IsMainFile : Boolean);
 procedure THTMLResourceLinkHandler.DoneUnit(IsMainFile : Boolean);
 begin
 begin
   // Do no call inherited, it will clear the list
   // Do no call inherited, it will clear the list
+  if IsMainFile then ;
 end;
 end;
 
 
 
 

+ 3 - 0
packages/pastojs/src/pas2jsresources.pp

@@ -72,6 +72,8 @@ uses base64;
 procedure TNoResources.HandleResource(aFileName: string; Options: TStrings);
 procedure TNoResources.HandleResource(aFileName: string; Options: TStrings);
 begin
 begin
   // Do nothing
   // Do nothing
+  if aFileName='' then ;
+  if Options=nil then ;
 end;
 end;
 
 
 
 
@@ -169,6 +171,7 @@ end;
 function TPas2jsResourceHandler.WriteJS(const aUnitName: String; aModule: TJSElement): TJSElement;
 function TPas2jsResourceHandler.WriteJS(const aUnitName: String; aModule: TJSElement): TJSElement;
 begin
 begin
   Result:=aModule;
   Result:=aModule;
+  if aUnitName='' then ;
 end;
 end;