소스 검색

Fix #85 and remove warnings.

JECL 3 년 전
부모
커밋
53ee540942
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      Quick.Commons.pas

+ 5 - 5
Quick.Commons.pas

@@ -2212,27 +2212,27 @@ end;
 
 function TDateTimeHelper.DecDay(const aValue : Cardinal = 1) : TDateTime;
 begin
-  Result := System.DateUtils.IncDay(Self,aValue * - 1);
+  Result := System.DateUtils.IncDay(Self,-aValue);
 end;
 
 function TDateTimeHelper.IncMonth(const aValue : Cardinal = 1) : TDateTime;
 begin
-  Result := System.DateUtils.IncDay(Self,aValue);
+  Result := SysUtils.IncMonth(Self,aValue);
 end;
 
 function TDateTimeHelper.DecMonth(const aValue : Cardinal = 1) : TDateTime;
 begin
-  Result := System.DateUtils.IncDay(Self,aValue * - 1);
+  Result := SysUtils.IncMonth(Self,-aValue);
 end;
 
 function TDateTimeHelper.IncYear(const aValue : Cardinal = 1) : TDateTime;
 begin
-  Result := System.DateUtils.IncDay(Self,aValue);
+  Result := System.DateUtils.IncYear(Self,aValue);
 end;
 
 function TDateTimeHelper.DecYear(const aValue : Cardinal = 1) : TDateTime;
 begin
-  Result := System.DateUtils.IncDay(Self,aValue * - 1);
+  Result := System.DateUtils.IncYear(Self,-aValue);
 end;
 
 function TDateTimeHelper.IsEqualTo(const aDateTime : TDateTime) : Boolean;