Ignore:
Timestamp:
Mar 6, 2016, 12:10:38 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Built with FPC 3.0.0. Fixed various compiler messages.
Location:
trunk/Packages/TemplateGenerics
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/TemplateGenerics/Additional/UBinarySerializer.pas

    r54 r72  
    6565  StringLength: Longint;
    6666begin
     67  StringLength  := 0;
    6768  FStream.ReadBuffer(StringLength, SizeOf(StringLength));
    6869  Result := ReadString(StringLength);
     
    9495function TBinarySerializer.ReadByte: Byte;
    9596begin
     97  Result := 0;
    9698  FStream.ReadBuffer(Result, SizeOf(Byte));
    9799end;
     
    99101function TBinarySerializer.ReadCardinal: Cardinal;
    100102begin
     103  Result := 0;
    101104  FStream.ReadBuffer(Result, SizeOf(Cardinal));
    102105  if SwapData then Result := SwapEndian(Result);
     
    105108function TBinarySerializer.ReadInt64: Int64;
    106109begin
     110  Result := 0;
    107111  FStream.ReadBuffer(Result, SizeOf(Int64));
    108112  if SwapData then Result := SwapEndian(Result);
     
    121125  Count: Byte;
    122126begin
     127  Count := 0;
    123128  FStream.ReadBuffer(Count, 1);
    124129  Result := ReadString(Count);
     
    206211function TBinarySerializer.ReadDouble: Double;
    207212begin
     213  Result := 0;
    208214  FStream.ReadBuffer(Result, SizeOf(Double));
    209215end;
     
    211217function TBinarySerializer.ReadSingle: Single;
    212218begin
     219  Result := 0;
    213220  FStream.ReadBuffer(Result, SizeOf(Single));
    214221end;
     
    216223function TBinarySerializer.ReadWord: Word;
    217224begin
     225  Result := 0;
    218226  FStream.ReadBuffer(Result, SizeOf(Word));
    219227  if SwapData then Result := SwapEndian(Result);
     
    262270procedure TBinarySerializer.WriteByte(Data: Byte);
    263271begin
     272  Data := 0;
    264273  FStream.WriteBuffer(Data, SizeOf(Byte));
    265274end;
  • trunk/Packages/TemplateGenerics/Generic/GenericMatrix.inc

    r54 r72  
    4949    function Implode(RowSeparator, ColSeparator: string; Converter: TGMatrixToStringConverter): string;
    5050    procedure Explode(Text, Separator: string; Converter: TGMatrixFromStringConverter; SlicesCount: Integer = -1);
    51     function IndexOf(Item: TGMatrixItem; Start: TGMatrixIndex = 0): TGMatrixIndex;
    52     function IndexOfList(List: TGMatrix; Start: TGMatrixIndex = 0): TGMatrixIndex;
     51    function IndexOf(Item: TGMatrixItem; Start: TGMatrixIndex): TGMatrixIndex;
     52    function IndexOfList(List: TGMatrix; Start: TGMatrixIndex): TGMatrixIndex;
    5353    procedure Insert(Index: TGMatrixIndex; Item: TGMatrixItem);
    5454    procedure InsertList(Index: TGMatrixIndex; List: TGMatrix);
  • trunk/Packages/TemplateGenerics/TemplateGenerics.lpk

    r54 r72  
    1 <?xml version="1.0"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    22<CONFIG>
    33  <Package Version="4">
    44    <PathDelim Value="\"/>
    55    <Name Value="TemplateGenerics"/>
     6    <Type Value="RunAndDesignTime"/>
    67    <AddToProjectUsesSection Value="True"/>
    78    <Author Value="Chronos (robie@centrum.cz)"/>
     
    1617      <CodeGeneration>
    1718        <Optimizations>
     19          <OptimizationLevel Value="3"/>
    1820          <VariablesInRegisters Value="True"/>
    19           <OptimizationLevel Value="3"/>
    2021        </Optimizations>
    2122      </CodeGeneration>
    2223      <Other>
    2324        <CompilerMessages>
    24           <UseMsgFile Value="True"/>
     25          <IgnoredMessages idx5024="True"/>
    2526        </CompilerMessages>
    26         <CompilerPath Value="$(CompPath)"/>
    2727      </Other>
    2828    </CompilerOptions>
     
    139139      </Item27>
    140140    </Files>
    141     <Type Value="RunAndDesignTime"/>
    142141    <RequiredPkgs Count="2">
    143142      <Item1>
  • trunk/Packages/TemplateGenerics/TemplateGenerics.pas

    r54 r72  
    55unit TemplateGenerics;
    66
     7{$warn 5023 off : no warning about unused units}
    78interface
    89
Note: See TracChangeset for help on using the changeset viewer.