Replacing magic constants with std::numeric_limits in id suggestion handling

Authored by thomasfischer on Jul 20 2019, 7:24 PM.

Description

Replacing magic constants with std::numeric_limits in id suggestion handling

The old code made use of magic constants like 0x00ffffff to signify
arbitrary long strings or arbitrary many words/authors/...
At one point, -1 got assigned to an unsigned int to set it to its
maximum value.

The new code makes proper use of std::numeric_limits<int>::max() to
signify 'arbitrary many' words/authors/characters for a id suggestion
template.

Details

Committed
thomasfischerJul 20 2019, 7:24 PM
Parents
R462:1fa8f47041cb: Adding missing return statement at error condition
Branches
Unknown
Tags
Unknown