Make value operator== const, add some limit checks in PrintConfigfile and related functions. Unify style a bit more.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4332
This commit is contained in:
parent
6a1a1eff9c
commit
5d654fc5c5
3 changed files with 94 additions and 90 deletions
|
@ -96,7 +96,7 @@ public:
|
|||
Value& operator= (char const * const in) { return copy(Value(in));}
|
||||
Value& operator= (Value const& in) { return copy(Value(in));}
|
||||
|
||||
bool operator== (Value const & other);
|
||||
bool operator== (Value const & other) const;
|
||||
operator bool () const;
|
||||
operator Hex () const;
|
||||
operator int () const;
|
||||
|
@ -150,7 +150,7 @@ protected:
|
|||
}
|
||||
Value value;
|
||||
std::vector<Value> suggested_values;
|
||||
typedef std::vector<Value>::iterator iter;
|
||||
typedef std::vector<Value>::const_iterator const_iter;
|
||||
Value default_value;
|
||||
const Changeable::Value change;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue