Commenting and "auto" reduction.

This commit is contained in:
Jeff Young 2022-01-08 13:23:32 +00:00
parent 05cfdd3907
commit 27c967421c
6 changed files with 6 additions and 6 deletions

View File

@ -238,7 +238,7 @@ void LIB_TEXT::Rotate( const VECTOR2I& center, bool aRotateCCW )
}
else
{
// 180º of rotation is a mirror
// 180° rotation is a mirror
if( GetHorizJustify() == GR_TEXT_H_ALIGN_LEFT )
SetHorizJustify( GR_TEXT_H_ALIGN_RIGHT );

View File

@ -740,7 +740,7 @@ void SCH_SEXPR_PLUGIN::Format( SCH_SHEET* aSheet )
// Save cache library.
m_out->Print( 1, "(lib_symbols\n" );
for( auto libSymbol : screen->GetLibSymbols() )
for( std::pair<const wxString, LIB_SYMBOL*>& libSymbol : screen->GetLibSymbols() )
SCH_SEXPR_PLUGIN_CACHE::SaveSymbol( libSymbol.second, *m_out, 2, libSymbol.first );
m_out->Print( 1, ")\n\n" );

View File

@ -453,7 +453,7 @@ bool SCH_SCREEN::doIsJunction( const VECTOR2I& aPosition, bool aBreakCrossings,
std::unordered_set<int> exitAngles[ 2 ];
std::vector<const SCH_LINE*> midPointLines[ 2 ];
// A pin at 90º still shouldn't match a line at 90º so just give pins unique numbers
// A pin at 90° still shouldn't match a line at 90° so just give pins unique numbers
int uniqueAngle = 10000;
for( const SCH_ITEM* item : Items().Overlapping( aPosition ) )

View File

@ -149,7 +149,7 @@ public:
/**
* This function has limited utility for SHAPE_RECT as non-cartesian rotations will distort
* the rectangle. If you might need to handle non-90º rotations then the SHAPE_RECT should
* the rectangle. If you might need to handle non-90° rotations then the SHAPE_RECT should
* first be converted to a SHAPE_SIMPLE which can then be free-rotated.
*/
void Rotate( double aAngle, const VECTOR2I& aCenter = { 0, 0 } ) override

View File

@ -888,7 +888,7 @@ void PCB_PAINTER::draw( const PAD* aPad, int aLayer )
if( aPad->GetShape() != PAD_SHAPE::CUSTOM )
{
// Don't allow a 45º rotation to bloat a pad's bounding box unnecessarily
// Don't allow a 45° rotation to bloat a pad's bounding box unnecessarily
double limit = std::min( aPad->GetSize().x, aPad->GetSize().y ) * 1.1;
if( padsize.x > limit && padsize.y > limit )

View File

@ -978,7 +978,7 @@ protected:
/// For each layer, a set of insulated islands that were not removed
std::map<PCB_LAYER_ID, std::set<int>> m_insulatedIslands;
bool m_hv45; // constrain edges to horiz, vert or 45º
bool m_hv45; // constrain edges to horiz, vert or 45°
double m_area; // The filled zone area
double m_outlinearea; // The outline zone area