From 84f58f36d4f36a7886210973a95f55b41c9538f5 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Sat, 28 Oct 2023 14:45:44 -0400 Subject: [PATCH] Coding policy fixes. --- common/tool/tool_action.cpp | 2 +- libs/kimath/include/math/util.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/tool/tool_action.cpp b/common/tool/tool_action.cpp index 2edc2f2340..b88817ae49 100644 --- a/common/tool/tool_action.cpp +++ b/common/tool/tool_action.cpp @@ -149,7 +149,7 @@ wxString TOOL_ACTION::GetMenuLabel() const { if( m_menuLabel.has_value() ) return wxGetTranslation( m_menuLabel.value() ); - + return GetFriendlyName(); } diff --git a/libs/kimath/include/math/util.h b/libs/kimath/include/math/util.h index 00e4ee154c..f5626b9ce9 100644 --- a/libs/kimath/include/math/util.h +++ b/libs/kimath/include/math/util.h @@ -3,12 +3,12 @@ * * Copyright (c) 2005 Michael Niedermayer * Copyright (C) CERN - * Copyright (C) 2021-2022 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2021-2023 KiCad Developers, see AUTHORS.txt for contributors. * * @author Tomasz Wlostowski * * The equals() method to compare two floating point values adapted from - * AlmostEqualRelativeAndAbs() on + * AlmostEqualRelativeAndAbs() on * https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ * (C) Bruce Dawson subject to the Apache 2.0 license. * @@ -90,7 +90,7 @@ constexpr ret_type KiROUND( fp_type v ) if( ret > std::numeric_limits::max() ) { kimathLogOverflow( double( v ), typeid( ret_type ).name() ); - + return std::numeric_limits::max() - 1; } else if( ret < std::numeric_limits::lowest() )