Leave the implicit uint to int cast
authorKevin Ottens <kevin.ottens@nextcloud.com>
Thu, 3 Sep 2020 15:02:08 +0000 (17:02 +0200)
committerKevin Ottens <ervin@ipsquad.net>
Tue, 8 Sep 2020 14:44:31 +0000 (16:44 +0200)
commitfdb35e5f9fb6204ccbd20b62b271c34bd6be7cb7
tree7233403c8b79d4c0e5973c109c8939e7f9c82030
parentde3ba2721b2bc53f4805fb2c4b46fc9223d4cb88
Leave the implicit uint to int cast

I wrongly (and stupidly) assumed the int in QBitArray was treated as a
hash as well but it is an index so it must be positive. Also to make
things even worse I misread on which expression clang-tidy was
complaining regarding the implementation specific narrowing
conversion... This is happening after the modulo operator and not
before. We're in a safe range of values at that point, so it's fine to
let the narrowing happen.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/socketapi.cpp