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
ms: TCompilerModeSwitch;
begin
Result:='';
for ms:=Low(TCompilerModeSwitches) to high(TCompilerModeSwitches) do
if ms in ModeSwitches then begin
Result:=Result+CompilerModeSwitchNames[ms]+',';

View File

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

View File

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

View File

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