mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 10:39:09 +02:00
IDE: less hints
git-svn-id: trunk@64291 -
This commit is contained in:
parent
97b67541f1
commit
5fe35be313
@ -222,7 +222,7 @@ begin
|
|||||||
Result:=mrOk;
|
Result:=mrOk;
|
||||||
OutS:='';
|
OutS:='';
|
||||||
aInStream.Position:=0;
|
aInStream.Position:=0;
|
||||||
SetLength(InS, aInStream.Size);
|
SetLength(InS{%H-}, aInStream.Size);
|
||||||
aInStream.Read(InS[1],length(InS));
|
aInStream.Read(InS[1],length(InS));
|
||||||
i := 1;
|
i := 1;
|
||||||
while i <= Length(InS) do begin
|
while i <= Length(InS) do begin
|
||||||
|
@ -376,7 +376,7 @@ var
|
|||||||
i, w: Integer;
|
i, w: Integer;
|
||||||
s: String;
|
s: String;
|
||||||
begin
|
begin
|
||||||
SetLength(ALineMap, abs(FSelectionEndLine - FSelectLine)+1);
|
SetLength(ALineMap{%H-}, abs(FSelectionEndLine - FSelectLine)+1);
|
||||||
UpdateLineDataEx(ALineMap, Min(FSelectionEndLine, FSelectLine),
|
UpdateLineDataEx(ALineMap, Min(FSelectionEndLine, FSelectLine),
|
||||||
abs(FSelectionEndLine - FSelectLine)+1,
|
abs(FSelectionEndLine - FSelectLine)+1,
|
||||||
FLastTopLine, FLastTopLineIdx, FLastTopLineIsSrc, FLastTopLineValid, False, True);
|
FLastTopLine, FLastTopLineIdx, FLastTopLineIsSrc, FLastTopLineValid, False, True);
|
||||||
|
@ -168,7 +168,7 @@ begin
|
|||||||
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist];
|
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist];
|
||||||
OpenDialog.Title:=lisChooseDebuggerExecutable;
|
OpenDialog.Title:=lisChooseDebuggerExecutable;
|
||||||
|
|
||||||
lDirName := EnvironmentOptions.GetParsedValue(eopDebuggerFilename, lDirText);
|
lDirName := EnvironmentOptions.GetParsedValue(eopDebuggerFilename, lDirText{%H-});
|
||||||
lExpandedName := CleanAndExpandFilename(lDirName);
|
lExpandedName := CleanAndExpandFilename(lDirName);
|
||||||
lDirName := GetValidDirectory(lDirName, {out} lDirNameF);
|
lDirName := GetValidDirectory(lDirName, {out} lDirNameF);
|
||||||
OpenDialog.InitialDir := lDirName;
|
OpenDialog.InitialDir := lDirName;
|
||||||
|
@ -94,8 +94,8 @@ type
|
|||||||
procedure actPowerExecute(Sender: TObject);
|
procedure actPowerExecute(Sender: TObject);
|
||||||
procedure DispDefaultClick(Sender: TObject);
|
procedure DispDefaultClick(Sender: TObject);
|
||||||
procedure lvRegistersDrawCell(Sender: TObject; aCol, aRow: Integer;
|
procedure lvRegistersDrawCell(Sender: TObject; aCol, aRow: Integer;
|
||||||
aRect: TRect; aState: TGridDrawState);
|
aRect: TRect; {%H-}aState: TGridDrawState);
|
||||||
procedure lvRegistersSelection(Sender: TObject; aCol, aRow: Integer);
|
procedure lvRegistersSelection(Sender: TObject; {%H-}aCol, {%H-}aRow: Integer);
|
||||||
procedure ToolButtonDispTypeClick(Sender: TObject);
|
procedure ToolButtonDispTypeClick(Sender: TObject);
|
||||||
function GetCurrentRegisters: TRegisters;
|
function GetCurrentRegisters: TRegisters;
|
||||||
private
|
private
|
||||||
|
@ -838,7 +838,7 @@ procedure TWatchesDlg.UpdateItem(const AItem: TListItem; const AWatch: TIdeWatch
|
|||||||
NewLine: Boolean;
|
NewLine: Boolean;
|
||||||
begin
|
begin
|
||||||
ow:=0;
|
ow:=0;
|
||||||
SetLength(Result,Length(AValue));
|
SetLength(Result{%H-},Length(AValue));
|
||||||
NewLine:=true;
|
NewLine:=true;
|
||||||
for j := 1 to Length(AValue) do begin
|
for j := 1 to Length(AValue) do begin
|
||||||
if (AValue[j]=#13) or (AValue[j]=#10) then begin
|
if (AValue[j]=#13) or (AValue[j]=#10) then begin
|
||||||
|
@ -764,8 +764,8 @@ begin
|
|||||||
akRight: SelectedControls.Sort(@compareControlRight);
|
akRight: SelectedControls.Sort(@compareControlRight);
|
||||||
akBottom: SelectedControls.Sort(@compareControlBottom);
|
akBottom: SelectedControls.Sort(@compareControlBottom);
|
||||||
end;
|
end;
|
||||||
setlength(OldPositions,SelectedControls.Count);
|
setlength(OldPositions{%H-},SelectedControls.Count);
|
||||||
setlength(OldPositions2,SelectedControls.Count);
|
setlength(OldPositions2{%H-},SelectedControls.Count);
|
||||||
for i:=0 to SelectedControls.Count-1 do begin
|
for i:=0 to SelectedControls.Count-1 do begin
|
||||||
OldPositions[i]:=NeighbourPosition(TControl(SelectedControls[i]));
|
OldPositions[i]:=NeighbourPosition(TControl(SelectedControls[i]));
|
||||||
case CurNeighbour of
|
case CurNeighbour of
|
||||||
|
@ -200,7 +200,7 @@ var
|
|||||||
si: TShadowItemBase;
|
si: TShadowItemBase;
|
||||||
mi: TMenuItem;
|
mi: TMenuItem;
|
||||||
begin
|
begin
|
||||||
SetLength(Result, 0);
|
SetLength(Result{%H-}, 0);
|
||||||
for si in FShadowList do
|
for si in FShadowList do
|
||||||
begin
|
begin
|
||||||
mi:=si.RealItem;
|
mi:=si.RealItem;
|
||||||
|
@ -2495,7 +2495,7 @@ var
|
|||||||
}
|
}
|
||||||
r.Right:=ClientWidth;
|
r.Right:=ClientWidth;
|
||||||
r.Left:=r.Right - MenuBar_Height;
|
r.Left:=r.Right - MenuBar_Height;
|
||||||
SetLength(pts, 4);
|
SetLength(pts{%H-}, 4);
|
||||||
pts[0]:=Point(r.Left, ScaleY(9, 96));
|
pts[0]:=Point(r.Left, ScaleY(9, 96));
|
||||||
pts[1]:=Point(r.Left + ScaleX(4, 96), ScaleY(12, 96));
|
pts[1]:=Point(r.Left + ScaleX(4, 96), ScaleY(12, 96));
|
||||||
pts[2]:=Point(r.Left, ScaleY(15, 96));
|
pts[2]:=Point(r.Left, ScaleY(15, 96));
|
||||||
|
@ -291,6 +291,7 @@ type
|
|||||||
procedure DefineBinaryProperty(const Name: string;
|
procedure DefineBinaryProperty(const Name: string;
|
||||||
{%H-}ReadData, {%H-}WriteData: TStreamProc;
|
{%H-}ReadData, {%H-}WriteData: TStreamProc;
|
||||||
{%H-}HasData: Boolean); override;
|
{%H-}HasData: Boolean); override;
|
||||||
|
procedure FlushBuffer; override;
|
||||||
property DefinePropertyNames: TStrings read FDefinePropertyNames;
|
property DefinePropertyNames: TStrings read FDefinePropertyNames;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -2638,6 +2639,11 @@ begin
|
|||||||
AddPropertyName(Name);
|
AddPropertyName(Name);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TDefinePropertiesReader.FlushBuffer;
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
{ TDefinePropertiesPersistent }
|
{ TDefinePropertiesPersistent }
|
||||||
|
|
||||||
constructor TDefinePropertiesPersistent.Create(TargetPersistent: TPersistent);
|
constructor TDefinePropertiesPersistent.Create(TargetPersistent: TPersistent);
|
||||||
|
@ -897,7 +897,7 @@ var
|
|||||||
xDesktops: array of TCustomDesktopOpt;
|
xDesktops: array of TCustomDesktopOpt;
|
||||||
I: Integer;
|
I: Integer;
|
||||||
begin
|
begin
|
||||||
SetLength(xDesktops, EnvironmentOptions.Desktops.Count);
|
SetLength(xDesktops{%H-}, EnvironmentOptions.Desktops.Count);
|
||||||
for I := 0 to Length(xDesktops)-1 do
|
for I := 0 to Length(xDesktops)-1 do
|
||||||
xDesktops[I] := EnvironmentOptions.Desktops[I];
|
xDesktops[I] := EnvironmentOptions.Desktops[I];
|
||||||
ExportDesktops(xDesktops);
|
ExportDesktops(xDesktops);
|
||||||
|
@ -116,7 +116,7 @@ begin
|
|||||||
try
|
try
|
||||||
fs := TFileStreamUTF8.Create(MemCode.Filename, fmOpenRead or fmShareDenyNone);
|
fs := TFileStreamUTF8.Create(MemCode.Filename, fmOpenRead or fmShareDenyNone);
|
||||||
try
|
try
|
||||||
SetLength(s, fs.Size);
|
SetLength(s{%H-}, fs.Size);
|
||||||
if s <> '' then
|
if s <> '' then
|
||||||
fs.Read(s[1], length(s));
|
fs.Read(s[1], length(s));
|
||||||
DiskEncoding := '';
|
DiskEncoding := '';
|
||||||
@ -169,7 +169,7 @@ begin
|
|||||||
try
|
try
|
||||||
if fs.Size=length(CurSource) then begin
|
if fs.Size=length(CurSource) then begin
|
||||||
// size has not changed => load to see difference
|
// size has not changed => load to see difference
|
||||||
SetLength(DiskSource,fs.Size);
|
SetLength(DiskSource{%H-},fs.Size);
|
||||||
fs.Read(DiskSource[1],length(DiskSource));
|
fs.Read(DiskSource[1],length(DiskSource));
|
||||||
if DiskSource=CurSource then
|
if DiskSource=CurSource then
|
||||||
PackageOk:=true;
|
PackageOk:=true;
|
||||||
|
@ -5139,7 +5139,7 @@ begin
|
|||||||
,'T'+AnUnitInfo.ComponentName,'FORMDATA');
|
,'T'+AnUnitInfo.ComponentName,'FORMDATA');
|
||||||
AnUnitInfo.ComponentLastLRSStreamSize:=MemStream.Size;
|
AnUnitInfo.ComponentLastLRSStreamSize:=MemStream.Size;
|
||||||
MemStream.Position:=0;
|
MemStream.Position:=0;
|
||||||
SetLength(CompResourceCode,MemStream.Size);
|
SetLength(CompResourceCode{%H-},MemStream.Size);
|
||||||
MemStream.Read(CompResourceCode[1],length(CompResourceCode));
|
MemStream.Read(CompResourceCode[1],length(CompResourceCode));
|
||||||
finally
|
finally
|
||||||
MemStream.Free;
|
MemStream.Free;
|
||||||
|
Loading…
Reference in New Issue
Block a user