diff --git a/src/backend/scheduler.cc b/src/backend/scheduler.cc index e0f0713..639ec30 100644 --- a/src/backend/scheduler.cc +++ b/src/backend/scheduler.cc @@ -282,7 +282,7 @@ determine_subr_allocable_status(const DynamicRequest& req, DynamicSubRequest& su // needed directly into subrequests, after all...) for(Iseq queue_it = iseq(queue); queue_it; queue_it++) { - DynamicSubRequest& x = reinterpret_cast(**queue_it); + DynamicSubRequest& x = static_cast(**queue_it); if(&x.get_request() == &req && x.get_state() == Request::state_allocable) x.set_state(Request::state_unallocable); } @@ -392,7 +392,7 @@ Scheduler::step_forward(History& history, CPUPolicy& cpu_policy) int current_instant = history.get_size() - 1; /* They should be equivalent */ // Safe cast: - ConcreteHistory& concrete_history = reinterpret_cast(history); + ConcreteHistory& concrete_history = static_cast(history); // Use an auto_ptr since we've some exceptions in the coming... auto_ptr new_snapshot(new ConcreteEnvironment(concrete_history.get_last_environment())); diff --git a/src/schedulables_tree_widget.cc b/src/schedulables_tree_widget.cc index 38e6f61..d60000b 100644 --- a/src/schedulables_tree_widget.cc +++ b/src/schedulables_tree_widget.cc @@ -540,7 +540,7 @@ void SchedulablesTreeWidget::_on_cell_name_data(Gtk::CellRenderer* cr, const Gtk::TreeModel::iterator& it) { - CellRendererTextMarkup& crtm = reinterpret_cast(*cr); + CellRendererTextMarkup& crtm = static_cast(*cr); ustring marked_up;