Replace a dynamic_cast with a static_cast

This commit is contained in:
Nikita Lisitsa 2022-04-11 20:19:16 +03:00
parent edccbc3ed5
commit 8d3c227285

View file

@ -427,7 +427,7 @@ namespace psemek::ui
{
post([weak_self = weak_from_this(), cb = on_text_entered_]{
if (auto self = weak_self.lock())
cb(dynamic_cast<edit const *>(self.get())->text_);
cb(static_cast<edit const *>(self.get())->text_);
});
}
}