[template.datetime] Avoid heap allocation for triggers (#13710)
This commit is contained in:
1 parent
6727fe9040
commit
bc9fc66225
6 files changed
+9
-9
No files matched your search
@@ -80,7 +80,7 @@ void TemplateDateTime::control(const datetime::DateTimeCall &call) {
|
||||
if (has_second)
|
||||
value.second = *call.get_second();
|
||||
|
||||
this->set_trigger_->trigger(value);
|
||||
this->set_trigger_.trigger(value);
|
||||
|
||||
if (this->optimistic_) {
|
||||
if (has_year)
|
||||
|
||||
Reference in new issue
Block a user