Changeset 12315


Ignore:
Timestamp:
10/28/11 19:58:05 (13 years ago)
Author:
tbretz
Message:
Make sure that the default option gets touched even it is finally not needed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Configuration.h

    r12041 r12315  
    178178    bool HasDef(const std::string &var, const T &val)
    179179    {
    180         return Has(var, val) ? true : Has(var+"default");
     180        // Make sure the .default option is touched
     181        const bool rc = Has(var+"default");
     182
     183        return Has(var, val) ? true : rc;
    181184    }
    182185/*
Note: See TracChangeset for help on using the changeset viewer.