mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 17:12:41 +02:00
LCL: reduced warnings
git-svn-id: trunk@35528 -
This commit is contained in:
parent
59696974ad
commit
40d3ff8228
@ -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]+',';
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -173,7 +173,7 @@ var
|
||||
i: integer;
|
||||
begin
|
||||
impl := TDefaultImageListImplementor.Create(AList);
|
||||
Result._Init(impl);
|
||||
Result{%H-}._Init(impl);
|
||||
|
||||
if AData <> nil then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user