mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 11:28:16 +00:00
Made an argument for the parser's read function const.
This commit is contained in:
parent
2f0717357a
commit
d2dc7883c0
@ -374,7 +374,7 @@ void read(config &cfg, std::istream &in, abstract_validator * validator)
|
||||
parser(cfg, in, validator)();
|
||||
}
|
||||
|
||||
void read(config &cfg, std::string &in, abstract_validator * validator)
|
||||
void read(config &cfg, const std::string &in, abstract_validator * validator)
|
||||
{
|
||||
std::istringstream ss(in);
|
||||
parser(cfg, ss, validator)();
|
||||
|
@ -27,7 +27,7 @@ class abstract_validator;
|
||||
// Read data in, clobbering existing data.
|
||||
void read(config &cfg, std::istream &in,
|
||||
abstract_validator * validator = NULL); // Throws config::error
|
||||
void read(config &cfg, std::string &in,
|
||||
void read(config &cfg, const std::string &in,
|
||||
abstract_validator * validator = NULL); // Throws config::error
|
||||
void read_gz(config &cfg, std::istream &in,
|
||||
abstract_validator * validator = NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user