Browse Source

--- Merging r36812 into '.':
U packages/fcl-db/src/base/dataset.inc
--- Recording mergeinfo for merge of r36812 into '.':
U .

# revisions: 36812

git-svn-id: branches/fixes_3_0@38405 -

marco 7 years ago
parent
commit
b0ef30d9c3
2 changed files with 3 additions and 20 deletions
  1. 2 19
      packages/fcl-db/src/base/dataset.inc
  2. 1 1
      utils/fpcm/revision.inc

+ 2 - 19
packages/fcl-db/src/base/dataset.inc

@@ -534,23 +534,6 @@ end;
 procedure TDataSet.DataConvert(aField: TField; aSource, aDest: Pointer;
   aToNative: Boolean);
 
- // There seems to be no WStrCopy defined, this is a copy of
- // the generic StrCopy function, adapted for WideChar.
- Function WStrCopy(Dest, Source:PWideChar): PWideChar;
- var
-   counter : SizeInt;
- Begin
-   counter := 0;
-   while Source[counter] <> #0 do
-   begin
-     Dest[counter] := char(Source[counter]);
-     Inc(counter);
-   end;
-   { terminate the string }
-   Dest[counter] := #0;
-   WStrCopy := Dest;
- end;
-
 var
   DT : TFieldType;
 
@@ -566,7 +549,7 @@ begin
   // See notes from mantis bug-report 8204 for more information
   //    ftBytes                   : ;
   //    ftVarBytes                : ;
-      ftWideString              : WStrCopy(PWideChar(aDest), PWideChar(aSource));
+      ftWideString              : StrCopy(PWideChar(aDest), PWideChar(aSource));
       end
     end
   else
@@ -578,7 +561,7 @@ begin
       ftFMTBCD                  : TBcd(aDest^) := TBcd(aSource^);
   //    ftBytes                   : ;
   //    ftVarBytes                : ;
-      ftWideString              : WStrCopy(PWideChar(aDest), PWideChar(aSource));
+      ftWideString              : StrCopy(PWideChar(aDest), PWideChar(aSource));
       end
     end
 end;

+ 1 - 1
utils/fpcm/revision.inc

@@ -1 +1 @@
-'2017-02-13 rev 35434'
+'2017-12-01 rev 37640'