瀏覽代碼

* String -> ShortString

Michael VAN CANNEYT 2 年之前
父節點
當前提交
40096655e9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rtl/inc/variant.inc

+ 2 - 2
rtl/inc/variant.inc

@@ -445,7 +445,7 @@ end;
 
 operator :=(const source : variant) dest : AnsiChar;{$ifdef SYSTEMINLINE}inline;{$endif}
 Var
-  S : String;
+  S : ShortString;
 begin
   VariantManager.VarToPStr(S,Source);
   If Length(S)>0 then
@@ -797,7 +797,7 @@ operator :=(const source : olevariant) dest : longbool;{$ifdef SYSTEMINLINE}inli
 { Chars }
 operator :=(const source : olevariant) dest : AnsiChar;{$ifdef SYSTEMINLINE}inline;{$endif}
   var
-    S : String;
+    S : ShortString;
   begin
     VariantManager.VarToPStr(S,Source);
     If Length(S)>0 then