You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2026-05-16 08:38:08 +02:00
Fixed an issue converting a boolean to integer using Ord in Lazarus.
Removed Lazarus warnings about inline functions and uninitilized variables.
This commit is contained in:
@@ -129,12 +129,15 @@ end;
|
||||
function cef_post_data_element_is_read_only(self: PCefPostDataElement): Integer; stdcall;
|
||||
var
|
||||
TempObject : TObject;
|
||||
TempResult : boolean;
|
||||
begin
|
||||
Result := Ord(False);
|
||||
TempResult := False;
|
||||
TempObject := CefGetObject(self);
|
||||
|
||||
if (TempObject <> nil) and (TempObject is TCefPostDataElementOwn) then
|
||||
Result := Ord(TCefPostDataElementOwn(TempObject).IsReadOnly);
|
||||
TempResult := TCefPostDataElementOwn(TempObject).IsReadOnly;
|
||||
|
||||
Result := Ord(TempResult);
|
||||
end;
|
||||
|
||||
procedure cef_post_data_element_set_to_empty(self: PCefPostDataElement); stdcall;
|
||||
|
||||
Reference in New Issue
Block a user