You've already forked lazarus-ccr
TvPlanIt: Remove warning about abstract method in TBufDataset.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8133 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -1538,7 +1538,7 @@ procedure TVpControlLink.SetCityStateZipFormat(const Value: String);
|
|||||||
begin
|
begin
|
||||||
if FCityStateZipFormat <> Value then begin
|
if FCityStateZipFormat <> Value then begin
|
||||||
FCityStateZipFormat := Value;
|
FCityStateZipFormat := Value;
|
||||||
Notify(self, neInvalidate, 0);
|
Notify(self, neInvalidate, 0{%H-});
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
{$I vp.inc}
|
{$I vp.inc}
|
||||||
|
|
||||||
|
{ TBufDataset of FPC 3.2.0 and older has an abstract method, LoadBlobIntoBuffer,
|
||||||
|
which creates a compiler warning }
|
||||||
|
{$DEFINE FIX_BUFDATASET}
|
||||||
|
|
||||||
unit VpBufDS;
|
unit VpBufDS;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
@@ -10,6 +14,14 @@ uses
|
|||||||
SysUtils, Classes, db, BufDataset,
|
SysUtils, Classes, db, BufDataset,
|
||||||
VpDBDS;
|
VpDBDS;
|
||||||
|
|
||||||
|
{$IFDEF FIX_BUFDATASET}
|
||||||
|
type
|
||||||
|
TBufDataset = class(BufDataset.TBufDataset)
|
||||||
|
protected
|
||||||
|
procedure LoadBlobIntoBuffer({%H-}FieldDef: TFieldDef;{%H-}ABlobBuf: PBufBlobField); override;
|
||||||
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
type
|
type
|
||||||
TVpBufDSDataStore = class(TVpCustomDBDataStore)
|
TVpBufDSDataStore = class(TVpCustomDBDataStore)
|
||||||
private
|
private
|
||||||
@@ -70,6 +82,18 @@ uses
|
|||||||
|
|
||||||
const
|
const
|
||||||
TABLE_EXT = '.db';
|
TABLE_EXT = '.db';
|
||||||
|
|
||||||
|
|
||||||
|
{ TBufDataset }
|
||||||
|
|
||||||
|
procedure TBufDataset.LoadBlobIntoBuffer(FieldDef: TFieldDef; ABlobBuf: PBufBlobField);
|
||||||
|
begin
|
||||||
|
// We just want to avoid the compiler warning.
|
||||||
|
// TVpBufDSDataStore does not use BLOBs anyway.
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
{ TVpBufDSDatastore }
|
||||||
|
|
||||||
constructor TVpBufDSDatastore.Create(AOwner: TComponent);
|
constructor TVpBufDSDatastore.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user