Silence deprecation warning about enum * fp type
This commit is contained in:
parent
dbd98f1ce0
commit
1607729cf7
|
@ -148,7 +148,7 @@ void ROUTER_PREVIEW_ITEM::Update( const PNS::ITEM* aItem )
|
|||
m_type = PR_SHAPE;
|
||||
m_width = 0;
|
||||
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;
|
||||
m_shape = nullptr;
|
||||
|
|
|
@ -73,7 +73,7 @@ public:
|
|||
* currently hard-coded via GAL::AdvanceDepth take a depth of 0.1)
|
||||
*/
|
||||
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 PNS::ITEM* aItem = nullptr, KIGFX::VIEW* aView = nullptr,
|
||||
|
|
Loading…
Reference in New Issue