Browse Source

fcl-db: less hints

mattias 6 years ago
parent
commit
8859a8c8f3
2 changed files with 6 additions and 0 deletions
  1. 3 0
      packages/fcl-base/fpexprpars.pas
  2. 3 0
      packages/fcl-db/restconnection.pas

+ 3 - 0
packages/fcl-base/fpexprpars.pas

@@ -3996,18 +3996,21 @@ end;
 
 Function BuiltInDate(Const Args : TExprParameterArray) : TFPExpressionResult;
 begin
+  if Args=nil then ;
   Result.ResultType:=rtDateTime;
   Result.resValue:=Date;
 end;
 
 Function BuiltInTime(Const Args : TExprParameterArray) : TFPExpressionResult;
 begin
+  if Args=nil then ;
   Result.ResultType:=rtDateTime;
   Result.resValue:=Time;
 end;
 
 Function BuiltInNow(Const Args : TExprParameterArray) : TFPExpressionResult;
 begin
+  if Args=nil then ;
   Result.ResultType:=rtDateTime;
   Result.resValue:=Now;
 end;

+ 3 - 0
packages/fcl-db/restconnection.pas

@@ -149,16 +149,19 @@ end;
 procedure TRESTConnection.SetupRequest(aXHR: TJSXMLHttpRequest);
 begin
   // Do nothing
+  if aXHR=nil then ;
 end;
 
 function TRESTConnection.GetUpdateBaseURL(aRequest: TRecordUpdateDescriptor): String;
 begin
   Result:=BaseURL;
+  if aRequest=nil then ;
 end;
 
 function TRESTConnection.GetReadBaseURL(aRequest: TDataRequest): String;
 begin
   Result:=BaseURL;
+  if aRequest=nil then ;
 end;
 
 function TRESTConnection.GetPageURL(aRequest: TDataRequest): String;