const SGPOINT::GetPoint args

This commit is contained in:
Marek Roszko 2021-02-01 08:13:00 -05:00
parent 32bf88fa8e
commit bf2e7215a5
2 changed files with 6 additions and 6 deletions

View File

@ -163,7 +163,7 @@ SGPOINT::SGPOINT( double aXVal, double aYVal, double aZVal ) noexcept
}
void SGPOINT::GetPoint( double& aXVal, double& aYVal, double& aZVal ) noexcept
void SGPOINT::GetPoint( const double& aXVal, const double& aYVal, const double& aZVal ) noexcept
{
x = aXVal;
y = aYVal;
@ -171,7 +171,7 @@ void SGPOINT::GetPoint( double& aXVal, double& aYVal, double& aZVal ) noexcept
}
void SGPOINT::GetPoint( SGPOINT& aPoint ) noexcept
void SGPOINT::GetPoint( const SGPOINT& aPoint ) noexcept
{
x = aPoint.x;
y = aPoint.y;
@ -179,7 +179,7 @@ void SGPOINT::GetPoint( SGPOINT& aPoint ) noexcept
}
void SGPOINT::GetPoint( SGPOINT* aPoint ) noexcept
void SGPOINT::GetPoint( const SGPOINT* aPoint ) noexcept
{
wxCHECK_MSG( aPoint, /* void */, "NULL pointer passed for aPoint" );

View File

@ -75,9 +75,9 @@ public:
SGPOINT();
SGPOINT( double aXVal, double aYVal, double aZVal ) noexcept;
void GetPoint( double& aXVal, double& aYVal, double& aZVal ) noexcept;
void GetPoint( SGPOINT& aPoint ) noexcept;
void GetPoint( SGPOINT* aPoint ) noexcept;
void GetPoint( const double& aXVal, const double& aYVal, const double& aZVal ) noexcept;
void GetPoint( const SGPOINT& aPoint ) noexcept;
void GetPoint( const SGPOINT* aPoint ) noexcept;
void SetPoint( double aXVal, double aYVal, double aZVal ) noexcept;
void SetPoint( const SGPOINT& aPoint ) noexcept;