Silence deprecation warning about enum * fp type

This commit is contained in:
Marek Roszko 2024-04-12 22:55:43 -04:00
parent dbd98f1ce0
commit 1607729cf7
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ void ROUTER_PREVIEW_ITEM::Update( const PNS::ITEM* aItem )
m_type = PR_SHAPE; m_type = PR_SHAPE;
m_width = 0; m_width = 0;
m_color = COLOR4D( 0.7, 0.7, 0.7, 0.8 ); m_color = COLOR4D( 0.7, 0.7, 0.7, 0.8 );
m_depth = m_originDepth - ( PCB_LAYER_ID_COUNT * LayerDepthFactor ); m_depth = m_originDepth - ( static_cast<double>( PCB_LAYER_ID_COUNT ) * LayerDepthFactor );
delete m_shape; delete m_shape;
m_shape = nullptr; m_shape = nullptr;

View File

@ -73,7 +73,7 @@ public:
* currently hard-coded via GAL::AdvanceDepth take a depth of 0.1) * currently hard-coded via GAL::AdvanceDepth take a depth of 0.1)
*/ */
static constexpr double LayerDepthFactor = 0.0001; static constexpr double LayerDepthFactor = 0.0001;
static constexpr double PathOverlayDepth = LayerDepthFactor * LAYER_ZONE_END; static constexpr double PathOverlayDepth = LayerDepthFactor * static_cast<double>( LAYER_ZONE_END );
ROUTER_PREVIEW_ITEM( const SHAPE& aShape, KIGFX::VIEW* aView = nullptr ); ROUTER_PREVIEW_ITEM( const SHAPE& aShape, KIGFX::VIEW* aView = nullptr );
ROUTER_PREVIEW_ITEM( const PNS::ITEM* aItem = nullptr, KIGFX::VIEW* aView = nullptr, ROUTER_PREVIEW_ITEM( const PNS::ITEM* aItem = nullptr, KIGFX::VIEW* aView = nullptr,