Fixed classes with undefined constructor.

IterativeRobot and BinaryImage had no constructor
defined (and so would give linker errors).
Error just had an empty constructor defined,
so I switched to "=default".

Change-Id: Ia8efb4282928227878dfefeda58ccb8cf06aabb2
This commit is contained in:
James Kuszmaul
2015-07-17 14:48:50 -04:00
parent c776324f96
commit eb7d55fd59
6 changed files with 3 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ class Error {
public:
typedef int32_t Code;
Error();
Error() = default;
void Clone(const Error& error);
Code GetCode() const;
std::string GetMessage() const;

View File

@@ -52,7 +52,7 @@
class ErrorBase {
// TODO: Consider initializing instance variables and cleanup in destructor
public:
ErrorBase();
ErrorBase() = default;
virtual ~ErrorBase() = default;
virtual Error& GetError();
virtual const Error& GetError() const;

View File

@@ -17,8 +17,6 @@
#include "Timer.h"
#include "Utility.h"
Error::Error() {}
void Error::Clone(const Error& error) {
m_code = error.m_code;
m_message = error.m_message;

View File

@@ -16,10 +16,6 @@
priority_mutex ErrorBase::_globalErrorMutex;
Error ErrorBase::_globalError;
/**
* @brief Initialize the instance status to 0 for now.
*/
ErrorBase::ErrorBase() {}
/**
* @brief Retrieve the current error.

View File

@@ -73,7 +73,7 @@ class IterativeRobot : public RobotBase {
virtual void Prestart();
virtual ~IterativeRobot() = default;
IterativeRobot();
IterativeRobot() = default;
private:
bool m_disabledInitialized = false;

View File

@@ -18,7 +18,6 @@
class BinaryImage : public MonoImage {
public:
BinaryImage();
virtual ~BinaryImage() = default;
int GetNumberParticles();
ParticleAnalysisReport GetParticleAnalysisReport(int particleNumber);