mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 08:38:19 +02:00
SynEdit: optimize access to textbuffer.
This commit is contained in:
parent
3a9a269fd1
commit
5d9f393aae
@ -1778,9 +1778,12 @@ begin
|
||||
end;
|
||||
|
||||
function TSynEditStringMemory.GetPChar(ALineIndex: Integer; out ALen: Integer): PChar;
|
||||
var
|
||||
ip: Pointer;
|
||||
begin
|
||||
ALen := length((PString(ItemPointer[ALineIndex]))^);
|
||||
Result := (PPChar(ItemPointer[ALineIndex]))^;
|
||||
ip := ItemPointer[ALineIndex];
|
||||
ALen := length(PString(ip)^);
|
||||
Result := PPChar(ip)^;
|
||||
end;
|
||||
|
||||
procedure TSynEditStringMemory.Move(AFrom, ATo, ALen: Integer);
|
||||
|
Loading…
Reference in New Issue
Block a user