diff --git a/common/preview_items/arc_assistant.cpp b/common/preview_items/arc_assistant.cpp index d1377028dd..98016a6435 100644 --- a/common/preview_items/arc_assistant.cpp +++ b/common/preview_items/arc_assistant.cpp @@ -28,7 +28,6 @@ #include #include -#include #include #include diff --git a/common/preview_items/polygon_item.cpp b/common/preview_items/polygon_item.cpp index 3802b186cb..21973e5e93 100644 --- a/common/preview_items/polygon_item.cpp +++ b/common/preview_items/polygon_item.cpp @@ -26,8 +26,8 @@ #include #include +#include #include -#include using namespace KIGFX::PREVIEW; @@ -58,7 +58,7 @@ void POLYGON_ITEM::SetPoints( const SHAPE_LINE_CHAIN& aLockedInPts, void POLYGON_ITEM::drawPreviewShape( KIGFX::VIEW* aView ) const { auto& gal = *aView->GetGAL(); - auto rs = static_cast( aView->GetPainter()->GetSettings() ); + auto rs = aView->GetPainter()->GetSettings(); gal.DrawPolyline( m_lockedChain ); gal.DrawPolygon( m_polyfill ); diff --git a/common/preview_items/preview_utils.cpp b/common/preview_items/preview_utils.cpp index ff70fd6d46..323a93eef5 100644 --- a/common/preview_items/preview_utils.cpp +++ b/common/preview_items/preview_utils.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include double KIGFX::PREVIEW::PreviewOverlayDeemphAlpha( bool aDeemph ) @@ -99,7 +99,7 @@ void KIGFX::PREVIEW::DrawTextNextToCursor( KIGFX::VIEW* aView, { auto gal = aView->GetGAL(); auto glyphSize = gal->GetGlyphSize(); - auto rs = static_cast( aView->GetPainter()->GetSettings() ); + auto rs = aView->GetPainter()->GetSettings(); const auto lineSpace = glyphSize.y * 0.2; auto linePitch = glyphSize.y + lineSpace; diff --git a/common/preview_items/ruler_item.cpp b/common/preview_items/ruler_item.cpp index 2e3d361618..638483a860 100644 --- a/common/preview_items/ruler_item.cpp +++ b/common/preview_items/ruler_item.cpp @@ -26,8 +26,8 @@ #include #include #include +#include #include -#include #include #include @@ -122,7 +122,7 @@ void drawTicksAlongLine( KIGFX::VIEW *aView, const VECTOR2D& aOrigin, auto gal = aView->GetGAL(); double tickSpace; TICK_FORMAT tickF = getTickFormatForScale( gal->GetWorldScale(), tickSpace, aUnits ); - auto rs = static_cast( aView->GetPainter()->GetSettings() ); + auto rs = aView->GetPainter()->GetSettings(); // number of ticks in whole ruler int numTicks = (int) std::ceil( aLine.EuclideanNorm() / tickSpace ); @@ -226,7 +226,7 @@ void RULER_ITEM::ViewGetLayers( int aLayers[], int& aCount ) const void RULER_ITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const { auto& gal = *aView->GetGAL(); - auto rs = static_cast( aView->GetPainter()->GetSettings() ); + auto rs = aView->GetPainter()->GetSettings(); VECTOR2D origin = m_geomMgr.GetOrigin(); VECTOR2D end = m_geomMgr.GetEnd(); diff --git a/common/preview_items/selection_area.cpp b/common/preview_items/selection_area.cpp index e647ef25c0..511a7b68dd 100644 --- a/common/preview_items/selection_area.cpp +++ b/common/preview_items/selection_area.cpp @@ -25,8 +25,8 @@ #include #include +#include #include -#include using namespace KIGFX::PREVIEW;