Fix a minor compil and a minor Coverity warnings.

This commit is contained in:
jean-pierre charras 2021-02-26 15:33:50 +01:00
parent 86aaa2e9cb
commit 10990f8e81
2 changed files with 5 additions and 5 deletions

View File

@ -431,10 +431,10 @@ COLOR4D& COLOR4D::Saturate( double aFactor )
return *this;
}
constexpr COLOR4D COLOR4D::UNSPECIFIED( 0, 0, 0, 0 );
constexpr COLOR4D COLOR4D::WHITE( 1, 1, 1, 1 );
constexpr COLOR4D COLOR4D::BLACK( 0, 0, 0, 1 );
constexpr COLOR4D COLOR4D::CLEAR( 1, 0, 1, 0 );
const COLOR4D COLOR4D::UNSPECIFIED( 0, 0, 0, 0 );
const COLOR4D COLOR4D::WHITE( 1, 1, 1, 1 );
const COLOR4D COLOR4D::BLACK( 0, 0, 0, 1 );
const COLOR4D COLOR4D::CLEAR( 1, 0, 1, 0 );
EDA_COLOR_T COLOR4D::FindNearestLegacyColor( int aR, int aG, int aB )

View File

@ -245,9 +245,9 @@ struct VIEW_OVERLAY::COMMAND_BITMAP_TEXT : public VIEW_OVERLAY::COMMAND
aView->GetGAL()->BitmapText( m_text, m_pos, m_angle );
}
double m_angle;
wxString m_text;
VECTOR2D m_pos;
double m_angle;
};
VIEW_OVERLAY::VIEW_OVERLAY()