Changeset 434 for Common/URegistry.pas


Ignore:
Timestamp:
Nov 19, 2012, 2:31:00 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Confused TRegistryEx property Context with Context parameter in some methods.
  • Fixed: TURI path was not properly handled in case of file in root directory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/URegistry.pas

    r432 r434  
    2626  TRegistryEx = class(TRegistry)
    2727  private
    28     function GetContext: TRegistryContext;
    29     procedure SetContext(AValue: TRegistryContext);
     28    function GetCurrentContext: TRegistryContext;
     29    procedure SetCurrentContext(AValue: TRegistryContext);
    3030  public
    3131    function ReadBoolWithDefault(const Name: string;
     
    3737    function DeleteKeyRecursive(const Key: string): Boolean;
    3838    function OpenKey(const Key: string; CanCreate: Boolean): Boolean;
    39     property Context: TRegistryContext read GetContext write SetContext;
     39    property CurrentContext: TRegistryContext read GetCurrentContext write SetCurrentContext;
    4040  end;
    4141
     
    109109end;
    110110
    111 function TRegistryEx.GetContext: TRegistryContext;
     111function TRegistryEx.GetCurrentContext: TRegistryContext;
    112112begin
    113113  Result.Key := CurrentPath;
     
    115115end;
    116116
    117 procedure TRegistryEx.SetContext(AValue: TRegistryContext);
     117procedure TRegistryEx.SetCurrentContext(AValue: TRegistryContext);
    118118begin
    119119  RootKey := AValue.RootKey;
Note: See TracChangeset for help on using the changeset viewer.