- 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:
parent
34c65f42d1
commit
14f3fd5cbc
|
@ -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()));
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue