Change ProfileData::max_size to size_t.
This commit is contained in:
parent
9386681b69
commit
35afb2800e
|
@ -180,7 +180,7 @@ void Config::generate()
|
|||
{
|
||||
line = "500";
|
||||
}
|
||||
data.max_size = static_cast<uint32_t>(stoul(line));
|
||||
data.max_size = stoul(line);
|
||||
|
||||
BOOST_LOG_TRIVIAL(debug) << "Generated configuration.";
|
||||
write();
|
||||
|
@ -240,8 +240,7 @@ void Config::parse()
|
|||
data.last_guid = _json[_profile]["last_guid"].asString();
|
||||
if (!_json[_profile]["max_size"].isNull())
|
||||
{
|
||||
data.max_size =
|
||||
static_cast<uint32_t>(_json[_profile]["max_size"].asUInt64());
|
||||
data.max_size = _json[_profile]["max_size"].asUInt64();
|
||||
}
|
||||
for (const auto &skip : _json[_profile]["skip"])
|
||||
{
|
||||
|
|
|
@ -47,7 +47,7 @@ struct ProfileData
|
|||
string instance;
|
||||
uint32_t interval{30};
|
||||
string last_guid;
|
||||
uint32_t max_size{500};
|
||||
size_t max_size{500};
|
||||
vector<string> skip;
|
||||
bool titles_as_cw{false};
|
||||
bool titles_only{false};
|
||||
|
|
Loading…
Reference in New Issue
Block a user