mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-15 01:29:11 +00:00
Added proxy for writing integer values into config attributes.
This commit is contained in:
parent
1e027ce607
commit
a4716378ed
@ -38,6 +38,12 @@ config::proxy_string &config::proxy_string::operator=(bool b)
|
||||
return *this;
|
||||
}
|
||||
|
||||
config::proxy_string &config::proxy_string::operator=(int v)
|
||||
{
|
||||
real_str_ = str_cast(v);
|
||||
return *this;
|
||||
}
|
||||
|
||||
config config::invalid;
|
||||
|
||||
const char* config::diff_track_attribute = "__diff_track";
|
||||
|
@ -181,6 +181,7 @@ public:
|
||||
{ return this->operator=(other.real_str_); }
|
||||
|
||||
proxy_string &operator=(bool);
|
||||
proxy_string &operator=(int);
|
||||
|
||||
proxy_string& operator=(const char *str)
|
||||
{ real_str_ = str; return *this; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user