Fix more warnings

Needless const and out of order initializer
This commit is contained in:
Marek Roszko 2023-05-29 23:01:58 -04:00
parent 8381677f20
commit 6e468c5ce9
3 changed files with 5 additions and 5 deletions

View File

@ -43,8 +43,8 @@ DIALOG_PLUGIN_OPTIONS::DIALOG_PLUGIN_OPTIONS( wxWindow* aParent,
const wxString& aFormattedOptions, const wxString& aFormattedOptions,
wxString* aResult ) : wxString* aResult ) :
DIALOG_PLUGIN_OPTIONS_BASE( aParent ), DIALOG_PLUGIN_OPTIONS_BASE( aParent ),
m_choices( aPluginOptions ),
m_callers_options( aFormattedOptions ), m_callers_options( aFormattedOptions ),
m_choices( aPluginOptions ),
m_result( aResult ), m_result( aResult ),
m_initial_help( INITIAL_HELP ), m_initial_help( INITIAL_HELP ),
m_grid_widths_dirty( true ) m_grid_widths_dirty( true )

View File

@ -126,7 +126,7 @@ const VECTOR2D CAIRO_GAL_BASE::xform( const VECTOR2D& aP )
} }
const double CAIRO_GAL_BASE::angle_xform( const double aAngle ) double CAIRO_GAL_BASE::angle_xform( double aAngle )
{ {
// calculate rotation angle due to the rotation transform // calculate rotation angle due to the rotation transform
// and if flipped on X axis. // and if flipped on X axis.
@ -174,7 +174,7 @@ void CAIRO_GAL_BASE::arc_angles_xform_and_normalize( double& aStartAngle, double
} }
const double CAIRO_GAL_BASE::xform( double x ) double CAIRO_GAL_BASE::xform( double x )
{ {
double dx = m_currentWorld2Screen.xx * x; double dx = m_currentWorld2Screen.xx * x;
double dy = m_currentWorld2Screen.yx * x; double dy = m_currentWorld2Screen.yx * x;

View File

@ -248,7 +248,7 @@ public:
protected: protected:
// Geometric transforms according to the m_currentWorld2Screen transform matrix: // Geometric transforms according to the m_currentWorld2Screen transform matrix:
const double xform( double x ); // scale double xform( double x ); // scale
const VECTOR2D xform( double x, double y ); // rotation, scale and offset const VECTOR2D xform( double x, double y ); // rotation, scale and offset
const VECTOR2D xform( const VECTOR2D& aP ); // rotation, scale and offset const VECTOR2D xform( const VECTOR2D& aP ); // rotation, scale and offset
@ -258,7 +258,7 @@ protected:
* @param aAngle is the angle in radians to transform. * @param aAngle is the angle in radians to transform.
* @return the modified angle. * @return the modified angle.
*/ */
const double angle_xform( const double aAngle ); double angle_xform( double aAngle );
/** /**
* Transform according to the rotation from m_currentWorld2Screen transform matrix * Transform according to the rotation from m_currentWorld2Screen transform matrix