Fixed several warnings

This commit is contained in:
Lukas Matena 2019-10-29 10:40:34 +01:00
parent 9e8ce66f70
commit 8b5561aec7
10 changed files with 14 additions and 17 deletions

View file

@ -235,9 +235,9 @@ size_t Index::load(const boost::filesystem::path &path)
value = left_trim(value + 1);
*key_end = 0;
boost::optional<Semver> semver;
if (maybe_semver)
if (maybe_semver)
semver = Semver::parse(key);
if (key_value_pair) {
if (key_value_pair) {
if (semver)
throw file_parser_error("Key cannot be a semantic version", path, idx_line);\
// Verify validity of the key / value pair.
@ -288,7 +288,6 @@ Index::const_iterator Index::find(const Semver &ver) const
Index::const_iterator Index::recommended() const
{
int idx = -1;
const_iterator highest = this->end();
for (const_iterator it = this->begin(); it != this->end(); ++ it)
if (it->is_current_slic3r_supported() &&