changed to moveconstruct

This commit is contained in:
Jonas Zeunert
2018-12-07 11:37:00 +01:00
parent f67845ce55
commit 0f0f404e19
4 changed files with 7 additions and 7 deletions

View File

@@ -21,9 +21,9 @@ public:
~ILamp() ~ILamp()
{}; {};
void activate(); virtual void activate() = 0;
void deactivate(); virtual void deactivate() = 0;
bool is_activated(); virtual bool is_activated() = 0;
}; };
} }

View File

@@ -20,7 +20,7 @@ class ISolenoid
public: public:
~ISolenoid() ~ISolenoid()
{}; {};
void trigger(); virtual void trigger() = 0;
}; };
} }

View File

@@ -16,8 +16,8 @@ namespace flippR_driver
namespace input namespace input
{ {
Detector::Detector(std::unique_ptr<IInputGPIOInterface> input_gpio_interface, std::vector<std::shared_ptr<DistributingEvent>> events) : Detector::Detector(std::unique_ptr<IInputGPIOInterface> input_gpio_interface, std::vector<std::shared_ptr<DistributingEvent>>& events) :
input_gpio_interface(std::move(input_gpio_interface)), events(events), is_running(true) input_gpio_interface(std::move(input_gpio_interface)), events(std::move(events)), is_running(true)
{ {
this->detect_thread = std::thread(&Detector::detect, this); this->detect_thread = std::thread(&Detector::detect, this);

View File

@@ -34,7 +34,7 @@ class Detector : public IDetector
{ {
public: public:
Detector(std::unique_ptr<IInputGPIOInterface> input_gpio_interface, std::vector<std::shared_ptr<DistributingEvent>> events); Detector(std::unique_ptr<IInputGPIOInterface> input_gpio_interface, std::vector<std::shared_ptr<DistributingEvent>>& events);
~Detector(); ~Detector();
private: private: