Skip to content

Commit 064d90b

Browse files
authored
Merge pull request #64 from danielmarschall/patch-1
Deprecation notices are now shown to the compiler
2 parents 46d2bf8 + 177d617 commit 064d90b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Source/DECCipherBase.pas

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,7 @@ TDECCipher = class(TDECObject)
616616
/// </exception>
617617
function EncodeRawByteString(const Source: RawByteString;
618618
Format: TDECFormatClass = nil): RawByteString;
619-
deprecated; // please use EncodeBytes functions now
620-
// or TCipherFormats.EncodeStringToString
619+
deprecated 'please use EncodeBytes functions or TCipherFormats.EncodeStringToString now';
621620
/// <summary>
622621
/// Decrypts the contents of a RawByteString. This method is deprecated
623622
/// and should be replaced by a variant expecting TBytes as source in
@@ -648,7 +647,7 @@ TDECCipher = class(TDECObject)
648647
/// is not a multiple of the algorithm's block size.
649648
/// </exception>
650649
function DecodeRawByteString(const Source: RawByteString;
651-
Format: TDECFormatClass = nil): RawByteString; deprecated; // please use DecodeBytes functions now
650+
Format: TDECFormatClass = nil): RawByteString; deprecated 'please use DecodeBytes functions now';
652651

653652
/// <summary>
654653
/// Encrypts the contents of a ByteArray.
@@ -708,7 +707,7 @@ TDECCipher = class(TDECObject)
708707
// Deprecated directive commented out, as replacement CalcMACByte has not
709708
// been implemented yet, see remark above. Use case for CalcMAC is not clear
710709
// yet either.
711-
function CalcMAC(Format: TDECFormatClass = nil): RawByteString; overload; //deprecated; // please use the TBytes based overload;
710+
function CalcMAC(Format: TDECFormatClass = nil): RawByteString; overload; //deprecated 'please use the TBytes based overload';
712711

713712
// properties
714713

0 commit comments

Comments
 (0)