From 077f231111082272359a916c3e41049aaf699151 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Wed, 4 Apr 2018 20:49:42 +0200 Subject: [clang-tidy] Promote some performance-* as a coding error (#7194) * Promote performance-type-promotion-in-math-fn as a coding error * Promote performance-faster-string-find too (which is not problematic currently) * Same for performance-implicit-cast-in-loop * Fix remaining tidy points --- src/content_cao.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/content_cao.cpp') diff --git a/src/content_cao.cpp b/src/content_cao.cpp index 81443c824..641093751 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -908,8 +908,7 @@ void GenericCAO::step(float dtime, ClientEnvironment *env) updateTextures(m_previous_texture_modifier); } } - if(!getParent() && fabs(m_prop.automatic_rotate) > 0.001) - { + if (!getParent() && std::fabs(m_prop.automatic_rotate) > 0.001) { m_yaw += dtime * m_prop.automatic_rotate * 180 / M_PI; updateNodePos(); } -- cgit v1.2.3