Browse Source

rtl: don't use c-style +=, -= in freebidi, utf8bidi since they can't be compiled with default options in this case

git-svn-id: trunk@15321 -
paul 15 years ago
parent
commit
8dfed24f3a
2 changed files with 6 additions and 6 deletions
  1. 3 3
      rtl/objpas/freebidi.pp
  2. 3 3
      rtl/objpas/utf8bidi.pp

+ 3 - 3
rtl/objpas/freebidi.pp

@@ -142,8 +142,8 @@ begin
   Count := Length(Src);
   Count := Length(Src);
   while (Count > 0) do
   while (Count > 0) do
   begin
   begin
-    Result += CharWidth(Src[Count], FontInfoPtr);
-    Count -= 1;
+    Result := Result + CharWidth(Src[Count], FontInfoPtr);
+    Count := Count - 1;
   end;
   end;
 end;
 end;
 
 
@@ -270,7 +270,7 @@ begin
       vp := Result[0];
       vp := Result[0];
     end;
     end;
     Insert(lp, Result, vp);
     Insert(lp, Result, vp);
-    lp += 1;
+    lp := lp + 1;
   end;
   end;
 end;
 end;
 
 

+ 3 - 3
rtl/objpas/utf8bidi.pp

@@ -174,7 +174,7 @@ begin
   vp := 1;
   vp := 1;
   Result := '';
   Result := '';
   for vp := 1 to Length(Src) do
   for vp := 1 to Length(Src) do
-    Result += UnicodeToUTF8(Src[vp]);
+    Result := Result + UnicodeToUTF8(Src[vp]);
 end;
 end;
 
 
 function UTF8ToUCS32(const UTF8Char:TUTF8Char):TUCS32Char;
 function UTF8ToUCS32(const UTF8Char:TUTF8Char):TUCS32Char;
@@ -223,10 +223,10 @@ begin
   SetLength(Result, Length(Src));
   SetLength(Result, Length(Src));
   while lp <= Length(Src) do
   while lp <= Length(Src) do
   begin
   begin
-    vp += 1;
+    vp := vp + 1;
     c := LCharOf(Src, lp);
     c := LCharOf(Src, lp);
     Result[vp] := WideChar(UTF8ToUCS16(c));
     Result[vp] := WideChar(UTF8ToUCS16(c));
-    lp += Length(c);
+    lp := lp + Length(c);
   end;
   end;
   SetLength(Result, vp);
   SetLength(Result, vp);
 end;
 end;