Use OnStateChange instead of OnStateChanged

This commit is contained in:
Noah Hilverling 2018-11-15 15:51:56 +01:00 committed by Michael Friedrich
parent 02ecc3e445
commit 9aec47efb3
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ INITIALIZE_ONCE(&RedisWriter::ConfigStaticInitialize);
void RedisWriter::ConfigStaticInitialize()
{
/* triggered in ProcessCheckResult(), requires UpdateNextCheck() to be called before */
ConfigObject::OnStateChanged.connect(std::bind(&RedisWriter::StateChangedHandler, _1));
Checkable::OnStateChange.connect(std::bind(&RedisWriter::StateChangeHandler, _1));
/* triggered on create, update and delete objects */
ConfigObject::OnActiveChanged.connect(std::bind(&RedisWriter::VersionChangedHandler, _1));
@ -735,7 +735,7 @@ RedisWriter::UpdateObjectAttrs(const ConfigObject::Ptr& object, int fieldType,
//m_Rcon->ExecuteQuery({"HSET", keyPrefix + typeName, GetObjectIdentifier(object), JsonEncode(attrs)});
}
void RedisWriter::StateChangedHandler(const ConfigObject::Ptr& object)
void RedisWriter::StateChangeHandler(const ConfigObject::Ptr &object)
{
Type::Ptr type = object->GetReflectionType();

View File

@ -97,7 +97,7 @@ private:
static void MakeTypeChecksums(const ConfigObject::Ptr& object, std::set<String>& propertiesBlacklist, Dictionary::Ptr& checkSums);
static void StateChangedHandler(const ConfigObject::Ptr& object);
static void StateChangeHandler(const ConfigObject::Ptr &object);
static void VersionChangedHandler(const ConfigObject::Ptr& object);
void AssertOnWorkQueue();