mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-26 13:09:26 +02:00
db: remove dummy checks in SetAfterConnect and friends - they case bugs in Lazarus because we are comparing pointers instead of TMethod (2 pointers)
git-svn-id: trunk@14966 -
This commit is contained in:
parent
be98b13554
commit
71c99628d4
@ -440,7 +440,6 @@ end;
|
|||||||
|
|
||||||
procedure TCustomConnection.SetAfterConnect(const AValue: TNotifyEvent);
|
procedure TCustomConnection.SetAfterConnect(const AValue: TNotifyEvent);
|
||||||
begin
|
begin
|
||||||
if FAfterConnect=AValue then exit;
|
|
||||||
FAfterConnect:=AValue;
|
FAfterConnect:=AValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -464,13 +463,11 @@ end;
|
|||||||
|
|
||||||
procedure TCustomConnection.SetAfterDisconnect(const AValue: TNotifyEvent);
|
procedure TCustomConnection.SetAfterDisconnect(const AValue: TNotifyEvent);
|
||||||
begin
|
begin
|
||||||
if FAfterDisconnect=AValue then exit;
|
|
||||||
FAfterDisconnect:=AValue;
|
FAfterDisconnect:=AValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomConnection.SetBeforeConnect(const AValue: TNotifyEvent);
|
procedure TCustomConnection.SetBeforeConnect(const AValue: TNotifyEvent);
|
||||||
begin
|
begin
|
||||||
if FBeforeConnect=AValue then exit;
|
|
||||||
FBeforeConnect:=AValue;
|
FBeforeConnect:=AValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -509,7 +506,6 @@ end;
|
|||||||
|
|
||||||
procedure TCustomConnection.SetBeforeDisconnect(const AValue: TNotifyEvent);
|
procedure TCustomConnection.SetBeforeDisconnect(const AValue: TNotifyEvent);
|
||||||
begin
|
begin
|
||||||
if FBeforeDisconnect=AValue then exit;
|
|
||||||
FBeforeDisconnect:=AValue;
|
FBeforeDisconnect:=AValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user