Skip to content

Commit

Permalink
Simplifica conversión a const
Browse files Browse the repository at this point in the history
  • Loading branch information
autosquash committed Feb 5, 2024
1 parent 9bb0ad4 commit a98ed6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tiempo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ GestorTiempoGeneral::get_timer(GestorTiempoKey clave) {
std::shared_ptr<const GestorTimer>
GestorTiempoGeneral::get_const_timer(GestorTiempoKey clave) const {
auto g = gestores.at(clave);
const std::shared_ptr<const GestorTimer> gestor =
std::dynamic_pointer_cast<GestorTimer>(g);
const auto gestor = std::dynamic_pointer_cast<const GestorTimer>(g);
assert(gestor);
return gestor;
}
Expand Down

0 comments on commit a98ed6d

Please sign in to comment.