Codestyle: Don't use auto where not warranted
We allow using auto for lambdas or complex macros where a return type may change based on the parameters. But where the type is clear, we should be explicit. Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
parent
d6d8cb1a17
commit
11518665b7
6 changed files with 16 additions and 17 deletions
|
|
@ -90,7 +90,7 @@ TEST_CASE("[Dictionary] Assignment using bracket notation ([])") {
|
|||
CHECK(int(map[false]) == 128);
|
||||
|
||||
// Ensure read-only maps aren't modified by non-existing keys.
|
||||
const auto length = map.size();
|
||||
const int length = map.size();
|
||||
map.make_read_only();
|
||||
CHECK(int(map["This key does not exist"].get_type()) == Variant::NIL);
|
||||
CHECK(map.size() == length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue