Fixed spelling
This commit is contained in:
@ -25,7 +25,7 @@ public:
|
||||
if (auto result = m_accessorInterface.setValue(m_value); result)
|
||||
m_confirmInterface.confirm();
|
||||
else
|
||||
m_errorHandlerInterface.errorOccured(std::move(result).error());
|
||||
m_errorHandlerInterface.errorOccurred(std::move(result).error());
|
||||
}
|
||||
|
||||
T value() const { return m_value; }
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
void triggered() override
|
||||
{
|
||||
if (auto result = setValue(!getValue()); !result)
|
||||
errorOccured(std::move(result).error());
|
||||
errorOccurred(std::move(result).error());
|
||||
}
|
||||
};
|
||||
} // namespace espgui
|
||||
|
@ -107,7 +107,7 @@ void ChangeValueDisplay<Tvalue>::update()
|
||||
if (auto result = static_cast<AccessorInterface<Tvalue>*>(this)->setValue(m_value); result)
|
||||
confirm();
|
||||
else
|
||||
errorOccured(std::move(result).error());
|
||||
errorOccurred(std::move(result).error());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ void ChangeValueDisplayChrono<T>::update()
|
||||
if (auto result = this->setValue(m_value); result)
|
||||
confirm();
|
||||
else
|
||||
errorOccured(std::move(result).error());
|
||||
errorOccurred(std::move(result).error());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ void ChangeValueDisplay<wifi_stack::ip_address_t>::buttonPressed(Button button)
|
||||
if (auto result = this->setValue(m_value); result)
|
||||
confirm();
|
||||
else
|
||||
errorOccured(std::move(result).error());
|
||||
errorOccurred(std::move(result).error());
|
||||
}
|
||||
break;
|
||||
case Button::Up:
|
||||
|
@ -59,7 +59,7 @@ void espgui::ChangeValueDisplay<std::string>::confirmValue()
|
||||
if (auto result = this->setValue(m_value); result)
|
||||
confirm();
|
||||
else
|
||||
errorOccured(std::move(result).error());
|
||||
errorOccurred(std::move(result).error());
|
||||
}
|
||||
|
||||
void espgui::ChangeValueDisplay<std::string>::removeLastCharFromShownValue()
|
||||
|
@ -8,13 +8,13 @@ namespace espgui {
|
||||
class ErrorHandlerInterface
|
||||
{
|
||||
public:
|
||||
virtual void errorOccured(std::string &&error) = 0;
|
||||
virtual void errorOccurred(std::string &&error) = 0;
|
||||
};
|
||||
|
||||
class DummyErrorHandler : public virtual ErrorHandlerInterface
|
||||
{
|
||||
public:
|
||||
void errorOccured(std::string &&error) override {}
|
||||
void errorOccurred(std::string &&error) override {}
|
||||
};
|
||||
|
||||
} // namespace espgui
|
||||
|
Reference in New Issue
Block a user