Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not use static_cast to downcast: can generate runtime issues
using a static_cast like this means that the compiler will not check the validity of the cast this could lead now or later to crash and other issues if the real type is not the one in the cast done with clang-tidy run-clang-tidy -p build -header-filter='.*' -config="{Checks: '*', CheckOptions: [{key: UseAssignment, value: true}]}" -checks='-*,cppcoreguidelines-pro-type-static-cast-downcast' -fix Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
- Loading branch information