From 333e41eac6daf60c6aa9df0496a39c57d74b9c87 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 26 Sep 2022 17:38:25 +1000 Subject: Cleanup: replace C-style casts with functional casts for numeric types Use function style casts in C++ headers & source. --- source/blender/functions/FN_field.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/functions') diff --git a/source/blender/functions/FN_field.hh b/source/blender/functions/FN_field.hh index ca12f407e49..bf2fbfa3f3c 100644 --- a/source/blender/functions/FN_field.hh +++ b/source/blender/functions/FN_field.hh @@ -546,7 +546,7 @@ template struct ValueOrField { bool is_field() const { - return (bool)this->field; + return bool(this->field); } Field as_field() const -- cgit v1.2.3