jvcllaz: Less hints and warnings.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7901 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-11-23 14:28:05 +00:00
parent 0fc7589a41
commit bc37254519
9 changed files with 18 additions and 19 deletions

View File

@ -128,9 +128,9 @@ type
{%H-}Button: TMouseButton; {%H-}Shift: TShiftState; {%H-}X, {%H-}Y: Integer); {%H-}Button: TMouseButton; {%H-}Shift: TShiftState; {%H-}X, {%H-}Y: Integer);
procedure lbxWizardPagesDragOver(Sender, Source: TObject; X, Y: Integer; procedure lbxWizardPagesDragOver(Sender, Source: TObject; X, Y: Integer;
{%H-}State: TDragState; var Accept: Boolean); {%H-}State: TDragState; var Accept: Boolean);
procedure lbxWizardPagesDragDrop(Sender, Source: TObject; X, Y: Integer); procedure lbxWizardPagesDragDrop(Sender, {%H-}Source: TObject; X, Y: Integer);
procedure actWizardPagesUpdate(AAction: TBasicAction; procedure actWizardPagesUpdate({%H-}AAction: TBasicAction;
var Handled: Boolean); var {%H-}Handled: Boolean);
procedure acMoveUpExecute(Sender: TObject); procedure acMoveUpExecute(Sender: TObject);
procedure acMoveDownExecute(Sender: TObject); procedure acMoveDownExecute(Sender: TObject);
private private

View File

@ -14,8 +14,7 @@
</SearchPaths> </SearchPaths>
</CompilerOptions> </CompilerOptions>
<Description Value="JVCL application forms (design time) containing form enhancement components: <Description Value="JVCL application forms (design time) containing form enhancement components:
- animated icons, animated title, form wallpaper - animated icons, animated title, form wallpaper" />
"/>
<License Value="The JVCL is released in accordance with the MPL 1.1 license. To get your own copy or read it, go to http://www.mozilla.org/MPL/MPL-1.1.html. "/> <License Value="The JVCL is released in accordance with the MPL 1.1 license. To get your own copy or read it, go to http://www.mozilla.org/MPL/MPL-1.1.html. "/>
<Version Major="1" Release="7"/> <Version Major="1" Release="7"/>
<Files Count="1"> <Files Count="1">

View File

@ -2,7 +2,7 @@
<CONFIG> <CONFIG>
<Package Version="5"> <Package Version="5">
<PathDelim Value="\"/> <PathDelim Value="\"/>
<Name Value="jvappfrmlazr"/> <Name Value="JvAppFrmLazR"/>
<Author Value="Various authors - see unit headers for details."/> <Author Value="Various authors - see unit headers for details."/>
<CompilerOptions> <CompilerOptions>
<Version Value="11"/> <Version Value="11"/>
@ -13,8 +13,7 @@
</SearchPaths> </SearchPaths>
</CompilerOptions> </CompilerOptions>
<Description Value="JVCL Application Forms (Runtime) containing form enhancement components: <Description Value="JVCL Application Forms (Runtime) containing form enhancement components:
- animated icons, animated title, form wallpaper - animated icons, animated title, form wallpaper" />
"/>
<License Value="The JVCL is released in accordance with the MPL 1.1 license. To get your own copy or read it, go to http://www.mozilla.org/MPL/MPL-1.1.html. "/> <License Value="The JVCL is released in accordance with the MPL 1.1 license. To get your own copy or read it, go to http://www.mozilla.org/MPL/MPL-1.1.html. "/>
<Version Major="1" Release="7"/> <Version Major="1" Release="7"/>
<Files Count="4"> <Files Count="4">

View File

@ -158,7 +158,7 @@ const
MaxLen = 256; MaxLen = 256;
var var
Len: DWORD; Len: DWORD;
WS: WideString; WS: WideString = '';
Res: windows.BOOL; Res: windows.BOOL;
{$ENDIF} {$ENDIF}
begin begin

View File

@ -110,7 +110,7 @@ end;
function LoadAnsiFileToString(const AFile: string): string; function LoadAnsiFileToString(const AFile: string): string;
var var
AnsiText: AnsiString; AnsiText: AnsiString = '';
begin begin
with TFileStream.Create(AFile, fmOpenRead) do with TFileStream.Create(AFile, fmOpenRead) do
try try

View File

@ -1300,7 +1300,7 @@ function FindUnusedFileName(FileName: string; const FileExt: string; NumberPrefi
implementation implementation
uses uses
Math, Variants, LazFileUtils, typinfo, LclStrConsts, Math, Variants, LazFileUtils, typinfo,
JvConsts; JvConsts;
(******************** NOT CONVERTED (******************** NOT CONVERTED
@ -1589,7 +1589,7 @@ end;
StrToFloatDefIgnoreInvalidCharacters with some improvements made to decimal StrToFloatDefIgnoreInvalidCharacters with some improvements made to decimal
separator handling. separator handling.
} }
function _JvSafeStrToFloat(const Str: string; aDecimalSeparator: Char; var OutValue: Extended): Boolean; function _JvSafeStrToFloat(const Str: string; aDecimalSeparator: Char; out OutValue: Extended): Boolean;
var var
LStr: String; LStr: String;
I: Integer; I: Integer;
@ -6791,7 +6791,8 @@ var
I, KeyLen: Integer; I, KeyLen: Integer;
C: Char; C: Char;
B: Byte; B: Byte;
Utf8Result, Utf8Key: UTF8String; Utf8Result: UTF8String = '';
Utf8Key: UTF8String;
begin begin
Result := ''; Result := '';
Utf8Key := UTF8Encode(Key); Utf8Key := UTF8Encode(Key);

View File

@ -1230,8 +1230,8 @@ var
OldHeight, OldWidth: Integer; OldHeight, OldWidth: Integer;
OffsetX, OffsetY: Integer; OffsetX, OffsetY: Integer;
NumControlsPerLine: Integer; NumControlsPerLine: Integer;
ControlRects: array of TControlRect; ControlRects: array of TControlRect = nil;
LineOffsets: array of Integer; LineOffsets: array of Integer = nil;
LineCount, Len: Integer; LineCount, Len: Integer;
ArrS: TJvArrangeSettings; ArrS: TJvArrangeSettings;
ControlSize: TSize; ControlSize: TSize;

View File

@ -107,14 +107,14 @@ type
{ High-DPI } { High-DPI }
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy; procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
const AXProportion, AYProportion: Double); override; const AXProportion, AYProportion: Double); override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
{$IF LCL_FullVersion >= 1080100} {$IF LCL_FullVersion >= 1080100}
procedure ScaleFontsPPI(const AToPPI: Integer; const AProportion: Double); override; procedure ScaleFontsPPI(const AToPPI: Integer; const AProportion: Double); override;
{$ELSEIF LCL_FullVersion >= 1080000} {$ELSEIF LCL_FullVersion >= 1080000}
procedure ScaleFontsPPI(const AProportion: Double); override; procedure ScaleFontsPPI(const AProportion: Double); override;
{$ENDIF} {$ENDIF}
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published published
property ActiveFont: TFont read FActiveFont write SetActiveFont; property ActiveFont: TFont read FActiveFont write SetActiveFont;
property ActiveFontOptions: TJvTrackFontOptions read FActiveFontOptions write SetActiveFontOptions default property ActiveFontOptions: TJvTrackFontOptions read FActiveFontOptions write SetActiveFontOptions default

View File

@ -34,7 +34,7 @@ interface
uses uses
LCLIntf, LCLProc, LCLType, LCLIntf, LCLProc, LCLType,
TypInfo, Classes, Controls, Graphics, StdCtrls, ExtCtrls, TypInfo, Classes, Controls, Graphics, ExtCtrls,
JvXPCore, JvXPCoreUtils; JvXPCore, JvXPCoreUtils;
type type