Skip to content

Commit

Permalink
less warns
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Feb 27, 2020
1 parent 14dd2ea commit 1978ae3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions atsynedit/atstringproc_wordjump.pas
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ procedure SFindSpacesBounds(const S: atString; AOffset: integer; out AOffset1,

implementation

{
(*
const
//no chars '@' (email) and '$' (used in php)
cCharsSymbols: atString = '!"#%&''()[]{}<>*+-/=,.:;?\^`|~‚„…‹›‘’“”–—¦«»­±';
}
*)

type
TCharGroup = (cgSpaces, cgSymbols, cgWord);
Expand Down
2 changes: 2 additions & 0 deletions atsynedit/atsynedit_canvasproc.pas
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ procedure CanvasTextOut(C: TCanvas; APosX, APosY: integer; AText: atString;
Buf: string;
BufW: UnicodeString;
DxPointer: PInteger;
{$ifdef windows}
bAllowLigatures: boolean;
{$endif}
begin
NLen:= Length(AText);
if NLen=0 then Exit;
Expand Down
5 changes: 2 additions & 3 deletions atsynedit/atsynedit_finder.pas
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ procedure TATTextFinder.DoOnFound;

function TATTextFinder.CheckTokens(APos: integer): boolean;
begin
//
Result:= true;
end;

function TATTextFinder.DoFind_Regex(AFromPos: integer): boolean;
Expand Down Expand Up @@ -1734,7 +1734,7 @@ function TATEditorFinder.FindMatch_InEditor(APosStart, APosEnd: TPoint;
var
Strs: TATStrings;
SFind, SLineToTest: UnicodeString;
NStartOffset, NEndOffset, NLenStrFind: integer;
NStartOffset, NEndOffset: integer;
IndexLine, IndexChar, IndexLineMax, i: integer;
bOk: boolean;
begin
Expand All @@ -1746,7 +1746,6 @@ function TATEditorFinder.FindMatch_InEditor(APosStart, APosEnd: TPoint;
SFind:= StrFind;
if not OptCase then
SFind:= WideUpperCase(SFind);
NLenStrFind:= Length(SFind);

StringArray_SetFromString(ListParts, SFind, OptBack);
PartCount:= Length(ListParts);
Expand Down

0 comments on commit 1978ae3

Please sign in to comment.