mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-10-31 16:21:45 +01:00 
			
		
		
		
	removed fpc 2.0.2 workaround from turbopower_ipro package
git-svn-id: trunk@10990 -
This commit is contained in:
		
							parent
							
								
									0456a590ff
								
							
						
					
					
						commit
						9df7768691
					
				| @ -2697,10 +2697,6 @@ const MimeTypeExt : Array[0..4] of String = ('.htm','.html','.txt','.jpg','.png' | ||||
|       MimeTypes   : Array[0..4] of String = ('text/html','text/html','text/plain','image/jpeg','image/png'); | ||||
| {$endif} | ||||
| 
 | ||||
| {$IFDEF VER2_0_2} | ||||
| type | ||||
|  TMyRegistry=Class(TRegistry); | ||||
| {$ENDIF} | ||||
| function GetLocalContent(const TheFileName: string): string; | ||||
| var | ||||
|   Reg : TRegistry; | ||||
| @ -2725,14 +2721,8 @@ begin | ||||
|   begin | ||||
|     Reg := nil; | ||||
|     try | ||||
|       {$IFDEF VER2_0_2} | ||||
|       Reg := TMyRegistry.Create; | ||||
|       Reg.RootKey := HKEY_CLASSES_ROOT; | ||||
|       TMyRegistry(Reg).SetCurrentKey(Reg.RootKey); | ||||
|       {$ELSE} | ||||
|       Reg := TRegistry.Create; | ||||
|       Reg.RootKey := HKEY_CLASSES_ROOT; | ||||
|       {$ENDIF} | ||||
|       if Reg.OpenKey(Ext, False) then | ||||
|         Result := Reg.ReadString('Content Type'); | ||||
|     finally | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 vincents
						vincents