LCL: reduced warnings

git-svn-id: trunk@35528 -
This commit is contained in:
mattias 2012-02-21 10:18:07 +00:00
parent 59696974ad
commit 40d3ff8228
4 changed files with 7 additions and 6 deletions

View File

@ -670,6 +670,7 @@ function dbgs(const ModeSwitches: TCompilerModeSwitches): string;
var var
ms: TCompilerModeSwitch; ms: TCompilerModeSwitch;
begin begin
Result:='';
for ms:=Low(TCompilerModeSwitches) to high(TCompilerModeSwitches) do for ms:=Low(TCompilerModeSwitches) to high(TCompilerModeSwitches) do
if ms in ModeSwitches then begin if ms in ModeSwitches then begin
Result:=Result+CompilerModeSwitchNames[ms]+','; Result:=Result+CompilerModeSwitchNames[ms]+',';

View File

@ -907,7 +907,7 @@ end;
function TRawImageDescription.GetDescriptionFromMask: TRawImageDescription; function TRawImageDescription.GetDescriptionFromMask: TRawImageDescription;
begin begin
Result.Init; Result{%H-}.Init;
Result.Format := ricfGray; Result.Format := ricfGray;
Result.Width := Width; Result.Width := Width;
@ -934,7 +934,7 @@ end;
function TRawImageDescription.GetDescriptionFromAlpha: TRawImageDescription; function TRawImageDescription.GetDescriptionFromAlpha: TRawImageDescription;
begin begin
Result.Init; Result{%H-}.Init;
Result.Format := ricfGray; Result.Format := ricfGray;
Result.Width := Width; Result.Width := Width;

View File

@ -820,7 +820,7 @@ end;
function QueryDescription(AFlags: TRawImageQueryFlags; AWidth: Integer = -1; AHeight: integer = -1): TRawImageDescription; function QueryDescription(AFlags: TRawImageQueryFlags; AWidth: Integer = -1; AHeight: integer = -1): TRawImageDescription;
begin begin
Exclude(AFlags, riqfUpdate); Exclude(AFlags, riqfUpdate);
Result.Init; Result{%H-}.Init;
QueryDescription(Result, AFlags, AWidth, AHeight); QueryDescription(Result, AFlags, AWidth, AHeight);
end; end;
@ -838,7 +838,7 @@ end;
function GetDescriptionFromDevice(ADC: HDC; AWidth, AHeight: integer): TRawImageDescription; function GetDescriptionFromDevice(ADC: HDC; AWidth, AHeight: integer): TRawImageDescription;
begin begin
Result.Init; Result{%H-}.Init;
if not RawImage_DescriptionFromDevice(ADC, Result) then Exit; if not RawImage_DescriptionFromDevice(ADC, Result) then Exit;
if AWidth <> -1 then Result.Width := AWidth; if AWidth <> -1 then Result.Width := AWidth;
if AHeight <> -1 then Result.Height := AHeight; if AHeight <> -1 then Result.Height := AHeight;
@ -846,7 +846,7 @@ end;
function GetDescriptionFromBitmap(ABitmap: HBitmap; AWidth: Integer = -1; AHeight: integer = -1): TRawImageDescription; function GetDescriptionFromBitmap(ABitmap: HBitmap; AWidth: Integer = -1; AHeight: integer = -1): TRawImageDescription;
begin begin
Result.Init; Result{%H-}.Init;
if not RawImage_DescriptionFromBitmap(ABitmap, Result) then Exit; if not RawImage_DescriptionFromBitmap(ABitmap, Result) then Exit;
if AWidth <> -1 then Result.Width := AWidth; if AWidth <> -1 then Result.Width := AWidth;
if AHeight <> -1 then Result.Height := AHeight; if AHeight <> -1 then Result.Height := AHeight;

View File

@ -173,7 +173,7 @@ var
i: integer; i: integer;
begin begin
impl := TDefaultImageListImplementor.Create(AList); impl := TDefaultImageListImplementor.Create(AList);
Result._Init(impl); Result{%H-}._Init(impl);
if AData <> nil then if AData <> nil then
begin begin