Fix Downtime validation function signature

refs #11483
This commit is contained in:
Michael Friedrich 2016-07-05 13:17:18 +02:00
parent 85afec8952
commit c73e4d3328
2 changed files with 4 additions and 4 deletions

View File

@ -367,7 +367,7 @@ void Downtime::DowntimesExpireTimerHandler(void)
}
}
void Downtime::ValidateStartTime(double value, const ValidationUtils& utils)
void Downtime::ValidateStartTime(const Timestamp& value, const ValidationUtils& utils)
{
ObjectImpl<Downtime>::ValidateStartTime(value, utils);
@ -375,7 +375,7 @@ void Downtime::ValidateStartTime(double value, const ValidationUtils& utils)
BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("start_time"), "Start time must be greater than 0."));
}
void Downtime::ValidateEndTime(double value, const ValidationUtils& utils)
void Downtime::ValidateEndTime(const Timestamp& value, const ValidationUtils& utils)
{
ObjectImpl<Downtime>::ValidateEndTime(value, utils);

View File

@ -70,8 +70,8 @@ protected:
virtual void Start(bool runtimeCreated) override;
virtual void Stop(bool runtimeRemoved) override;
virtual void ValidateStartTime(double value, const ValidationUtils& utils) override;
virtual void ValidateEndTime(double value, const ValidationUtils& utils) override;
virtual void ValidateStartTime(const Timestamp& value, const ValidationUtils& utils) override;
virtual void ValidateEndTime(const Timestamp& value, const ValidationUtils& utils) override;
private:
ObjectImpl<Checkable>::Ptr m_Checkable;