diff --git a/eeschema/lib_text.cpp b/eeschema/lib_text.cpp index 356dca4408..53e826b9c7 100644 --- a/eeschema/lib_text.cpp +++ b/eeschema/lib_text.cpp @@ -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 ); diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp index 1fb4ebd631..55d8a0c54d 100644 --- a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp +++ b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp @@ -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& libSymbol : screen->GetLibSymbols() ) SCH_SEXPR_PLUGIN_CACHE::SaveSymbol( libSymbol.second, *m_out, 2, libSymbol.first ); m_out->Print( 1, ")\n\n" ); diff --git a/eeschema/sch_screen.cpp b/eeschema/sch_screen.cpp index c42b35eefe..c433635699 100644 --- a/eeschema/sch_screen.cpp +++ b/eeschema/sch_screen.cpp @@ -453,7 +453,7 @@ bool SCH_SCREEN::doIsJunction( const VECTOR2I& aPosition, bool aBreakCrossings, std::unordered_set exitAngles[ 2 ]; std::vector 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 ) ) diff --git a/libs/kimath/include/geometry/shape_rect.h b/libs/kimath/include/geometry/shape_rect.h index 6633669569..d1198b92ec 100644 --- a/libs/kimath/include/geometry/shape_rect.h +++ b/libs/kimath/include/geometry/shape_rect.h @@ -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 diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index 7ae95e8b16..4736f212cb 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -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 ) diff --git a/pcbnew/zone.h b/pcbnew/zone.h index 8f19768172..3bd2d23abd 100644 --- a/pcbnew/zone.h +++ b/pcbnew/zone.h @@ -978,7 +978,7 @@ protected: /// For each layer, a set of insulated islands that were not removed std::map> 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