Skip to content
Snippets Groups Projects
Commit a56e8afd authored by Jyoti Prakash Biswal's avatar Jyoti Prakash Biswal Committed by Adam Edward Barton
Browse files

Missing move assignment operator -- fixed! [CID# 113629]

parent fa920e86
No related branches found
No related tags found
No related merge requests found
...@@ -70,20 +70,13 @@ namespace Trk { ...@@ -70,20 +70,13 @@ namespace Trk {
class LocalDirection { class LocalDirection {
public: public:
/** Default ctor - needed by POOL */
LocalDirection();
/** copy constructor */ LocalDirection() {};
LocalDirection(const LocalDirection& err);
/** constructors with parameters */
LocalDirection(double alphaXZ, double betaYZ);
/** destructor, virtual as other classes may inherit */
virtual ~LocalDirection();
/** assignment operator */ LocalDirection(double axz, double ayz) :
LocalDirection& operator=(const LocalDirection &err); m_angleXZ(axz),
m_angleYZ(ayz)
{}
/** access method for angle of local XZ projection */ /** access method for angle of local XZ projection */
const double& angleXZ() const; const double& angleXZ() const;
...@@ -91,10 +84,9 @@ namespace Trk { ...@@ -91,10 +84,9 @@ namespace Trk {
/** access method for angle of local YZ projection */ /** access method for angle of local YZ projection */
const double& angleYZ() const; const double& angleYZ() const;
protected: protected:
double m_angleXZ; double m_angleXZ = 0.;
double m_angleYZ; double m_angleYZ = 0.;
}; };
......
...@@ -10,33 +10,6 @@ ...@@ -10,33 +10,6 @@
//Gaudi //Gaudi
#include "GaudiKernel/MsgStream.h" #include "GaudiKernel/MsgStream.h"
Trk::LocalDirection::LocalDirection() :
m_angleXZ(0.),
m_angleYZ(0.)
{}
Trk::LocalDirection::LocalDirection(double axz, double ayz) :
m_angleXZ(axz),
m_angleYZ(ayz)
{}
Trk::LocalDirection::LocalDirection(const LocalDirection& locdir) :
m_angleXZ(locdir.m_angleXZ),
m_angleYZ(locdir.m_angleYZ)
{}
Trk::LocalDirection::~LocalDirection()
{}
Trk::LocalDirection& Trk::LocalDirection::operator=(const Trk::LocalDirection& rhs)
{
if (this != &rhs){
m_angleXZ = rhs.m_angleXZ;
m_angleYZ = rhs.m_angleYZ;
}
return(*this);
}
/**Overload of << operator for both, MsgStream and std::ostream for debug output*/ /**Overload of << operator for both, MsgStream and std::ostream for debug output*/
MsgStream& Trk::operator << ( MsgStream& ls, const Trk::LocalDirection& lom) MsgStream& Trk::operator << ( MsgStream& ls, const Trk::LocalDirection& lom)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment