You've already forked CEF4Delphi
							
							
				mirror of
				https://github.com/salvadordf/CEF4Delphi.git
				synced 2025-10-30 23:07:52 +02:00 
			
		
		
		
	Removed unused interface and more pointer checks
This commit is contained in:
		| @@ -271,8 +271,13 @@ end; | ||||
|  | ||||
| function CefGetObject(ptr: Pointer): TObject; {$IFDEF SUPPORTS_INLINE} inline; {$ENDIF} | ||||
| begin | ||||
|   Dec(PByte(ptr), SizeOf(Pointer)); | ||||
|   Result := TObject(PPointer(ptr)^); | ||||
|   if (ptr <> nil) then | ||||
|     begin | ||||
|       Dec(PByte(ptr), SizeOf(Pointer)); | ||||
|       Result := TObject(PPointer(ptr)^); | ||||
|     end | ||||
|    else | ||||
|     Result := nil; | ||||
| end; | ||||
|  | ||||
| function CefGetData(const i: ICefBaseRefCounted): Pointer; {$IFDEF SUPPORTS_INLINE} inline; {$ENDIF} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user