utils: unicodeset remove duplicate ord(), initialize cp variable

git-svn-id: trunk@23815 -
This commit is contained in:
paul 2013-03-13 07:03:54 +00:00
parent 9a26fc6994
commit 7e591e1ea9

View File

@ -256,7 +256,6 @@ begin
c := FBuffer[FPosition];
cp := Ord(c);
Inc(FPosition);
cp := Ord(c);
if (c = '\') and (FPosition < FBufferLength) then begin
if IsThis('\') then begin
Inc(FPosition);
@ -299,6 +298,7 @@ begin
Expect('[');
charCount := 0;
Inc(FPosition);
cp:=0;
while (FPosition < FBufferLength) do begin
lastCp := cp;
cp := NextChar();