mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
removed operator= and copy ctor from classes where they only duplicated the behaviour of the default implementations that C++ generates automatically
This commit is contained in:
@@ -41,7 +41,8 @@ private:
|
||||
* \param prefixName
|
||||
* \param factor
|
||||
*/
|
||||
CMeasurementPrefix(const QString &name, const QString &symbol, double factor);
|
||||
CMeasurementPrefix(const QString &name, const QString &symbol, double factor) :
|
||||
m_name(name), m_symbol(symbol), m_factor(factor) {}
|
||||
|
||||
protected:
|
||||
/*!
|
||||
@@ -75,19 +76,6 @@ protected:
|
||||
}
|
||||
|
||||
public:
|
||||
/*!
|
||||
* \brief Copy constructor
|
||||
* \param other
|
||||
*/
|
||||
CMeasurementPrefix(const CMeasurementPrefix &other);
|
||||
|
||||
/*!
|
||||
* \brief Assigmnet operator =
|
||||
* \param other
|
||||
* \return
|
||||
*/
|
||||
CMeasurementPrefix &operator =(const CMeasurementPrefix &other);
|
||||
|
||||
/*!
|
||||
* \brief Equal operator ==
|
||||
* \param other
|
||||
@@ -439,13 +427,6 @@ protected:
|
||||
*/
|
||||
CMeasurementUnit(const CMeasurementUnit &other);
|
||||
|
||||
/*!
|
||||
* \brief Assignment operator =
|
||||
* \param other
|
||||
* \return
|
||||
*/
|
||||
CMeasurementUnit &operator =(const CMeasurementUnit &other);
|
||||
|
||||
/*!
|
||||
* \brief String for streaming operators is full name
|
||||
* \return
|
||||
|
||||
Reference in New Issue
Block a user