Changeset 3275


Ignore:
Timestamp:
03/12/09 02:59:22 (3 years ago)
Author:
jquelin
Message:

removing duplicated constants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Config.pm

    r3274 r3275  
    3636our $SINGLETON = undef; 
    3737 
    38 # Settings Types (based on Firefox) 
    39 use constant BOOLEAN => 0; 
    40 use constant POSINT  => 1; 
    41 use constant INTEGER => 2; 
    42 use constant ASCII  => 3; 
    43 use constant PATH    => 4; 
    44  
    45 # Setting Stores 
    46 use constant HOST    => 0; 
    47 use constant HUMAN   => 1; 
    48 use constant PROJECT => 2; 
    4938 
    5039# Accessor generation 
     
    494483            Carp::croak("Did not provide a project config to Padre::Config->new"); 
    495484        } 
    496         $self->[PROJECT] = $project; 
     485        $self->[$PROJECT] = $project; 
    497486    } 
    498487 
     
    525514        Carp::croak("Tried to change setting '$name' to non-integer '$value'"); 
    526515    } 
    527     if ( $type == PATH and not -e $value ) { 
     516    if ( $type == $PATH and not -e $value ) { 
    528517        Carp::croak("Tried to change setting '$name' to non-existant path '$value'"); 
    529518    } 
Note: See TracChangeset for help on using the changeset viewer.