mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:49:23 +02:00
fcl-db: base: cosmetic
git-svn-id: trunk@46357 -
This commit is contained in:
parent
8a0ed03ace
commit
8eda8075f8
@ -177,7 +177,8 @@ end;
|
|||||||
function TFieldDef.GetCharSize: Word;
|
function TFieldDef.GetCharSize: Word;
|
||||||
begin
|
begin
|
||||||
case FDataType of
|
case FDataType of
|
||||||
ftGUID: Result:=1;
|
ftGuid:
|
||||||
|
Result := 1;
|
||||||
ftString, ftFixedChar:
|
ftString, ftFixedChar:
|
||||||
case FCodePage of
|
case FCodePage of
|
||||||
CP_UTF8: Result := 4;
|
CP_UTF8: Result := 4;
|
||||||
@ -3349,11 +3350,6 @@ begin
|
|||||||
SetAsString(GuidToString(AValue));
|
SetAsString(GuidToString(AValue));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TVariantField.GetDefaultWidth: Integer;
|
|
||||||
begin
|
|
||||||
Result := 15;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ TVariantField }
|
{ TVariantField }
|
||||||
|
|
||||||
constructor TVariantField.Create(AOwner: TComponent);
|
constructor TVariantField.Create(AOwner: TComponent);
|
||||||
@ -3367,6 +3363,11 @@ begin
|
|||||||
{ empty }
|
{ empty }
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TVariantField.GetDefaultWidth: Integer;
|
||||||
|
begin
|
||||||
|
Result := 15;
|
||||||
|
end;
|
||||||
|
|
||||||
function TVariantField.GetAsBoolean: Boolean;
|
function TVariantField.GetAsBoolean: Boolean;
|
||||||
begin
|
begin
|
||||||
Result := GetAsVariant;
|
Result := GetAsVariant;
|
||||||
|
Loading…
Reference in New Issue
Block a user