Change ProfileData::max_size to size_t.

This commit is contained in:
tastytea 2019-12-28 05:53:49 +01:00
parent 9386681b69
commit 35afb2800e
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 4 deletions

View File

@ -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"])
{

View File

@ -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};