- Change reinterpret_casts to static_casts where possible

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@939 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-08-25 17:01:39 +00:00
parent 34c65f42d1
commit 14f3fd5cbc
2 changed files with 3 additions and 3 deletions

View File

@ -282,7 +282,7 @@ determine_subr_allocable_status(const DynamicRequest& req, DynamicSubRequest& su
// needed directly into subrequests, after all...)
for(Iseq<SubRequestQueue::iterator> queue_it = iseq(queue); queue_it; queue_it++)
{
DynamicSubRequest& x = reinterpret_cast<DynamicSubRequest&>(**queue_it);
DynamicSubRequest& x = static_cast<DynamicSubRequest&>(**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<ConcreteHistory&>(history);
ConcreteHistory& concrete_history = static_cast<ConcreteHistory&>(history);
// Use an auto_ptr since we've some exceptions in the coming...
auto_ptr<ConcreteEnvironment> new_snapshot(new ConcreteEnvironment(concrete_history.get_last_environment()));

View File

@ -540,7 +540,7 @@ void
SchedulablesTreeWidget::_on_cell_name_data(Gtk::CellRenderer* cr,
const Gtk::TreeModel::iterator& it)
{
CellRendererTextMarkup& crtm = reinterpret_cast<CellRendererTextMarkup&>(*cr);
CellRendererTextMarkup& crtm = static_cast<CellRendererTextMarkup&>(*cr);
ustring marked_up;