Changeset 27781

Show
Ignore:
Timestamp:
01/02/09 17:56:25 (4 years ago)
Author:
topia
Message:

make formula_operator_dec no operand.
remove useless class (formula_operand).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/foobar2000/trunk/foo_sli/foo_sli.cpp

    r27779 r27781  
    9898        class formula_operator_dec : public formula_operator { 
    9999        public: 
    100                 formula_operator_dec() : formula_operator("--", true) {} 
     100                formula_operator_dec() : formula_operator("--", false) {} 
    101101                virtual unsigned int calculate(unsigned int original, unsigned int operand) { 
    102102                        if (original >= 1) return original - 1; 
    103103                        else return 0; 
    104                 } 
    105         }; 
    106  
    107         class formula_operand { 
    108         public: 
    109                 bool indirect; 
    110                 unsigned int value; 
    111                 unsigned int resolve(t_flags_array & flags) { 
    112                         if (!indirect) return value; 
    113                         if (flags.get_size() < value) 
    114                                 throw pfc::exception_overflow(); 
    115                         return flags[value]; 
    116104                } 
    117105        };