mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -73,7 +73,7 @@ class IterativeRobot : public RobotBase {
|
||||
virtual void Prestart();
|
||||
|
||||
virtual ~IterativeRobot() = default;
|
||||
IterativeRobot();
|
||||
IterativeRobot() = default;
|
||||
|
||||
private:
|
||||
bool m_disabledInitialized = false;
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
class BinaryImage : public MonoImage {
|
||||
public:
|
||||
BinaryImage();
|
||||
virtual ~BinaryImage() = default;
|
||||
int GetNumberParticles();
|
||||
ParticleAnalysisReport GetParticleAnalysisReport(int particleNumber);
|
||||
|
||||
Reference in New Issue
Block a user