Coding policy fixes.
This commit is contained in:
parent
2f19112212
commit
84f58f36d4
|
@ -149,7 +149,7 @@ wxString TOOL_ACTION::GetMenuLabel() const
|
||||||
{
|
{
|
||||||
if( m_menuLabel.has_value() )
|
if( m_menuLabel.has_value() )
|
||||||
return wxGetTranslation( m_menuLabel.value() );
|
return wxGetTranslation( m_menuLabel.value() );
|
||||||
|
|
||||||
return GetFriendlyName();
|
return GetFriendlyName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at>
|
* Copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at>
|
||||||
* Copyright (C) CERN
|
* 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 <tomasz.wlostowski@cern.ch>
|
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
|
||||||
*
|
*
|
||||||
* The equals() method to compare two floating point values adapted from
|
* 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/
|
* https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
|
||||||
* (C) Bruce Dawson subject to the Apache 2.0 license.
|
* (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<ret_type>::max() )
|
if( ret > std::numeric_limits<ret_type>::max() )
|
||||||
{
|
{
|
||||||
kimathLogOverflow( double( v ), typeid( ret_type ).name() );
|
kimathLogOverflow( double( v ), typeid( ret_type ).name() );
|
||||||
|
|
||||||
return std::numeric_limits<ret_type>::max() - 1;
|
return std::numeric_limits<ret_type>::max() - 1;
|
||||||
}
|
}
|
||||||
else if( ret < std::numeric_limits<ret_type>::lowest() )
|
else if( ret < std::numeric_limits<ret_type>::lowest() )
|
||||||
|
|
Loading…
Reference in New Issue