Removed some useless static_cast.
This commit is contained in:
@@ -161,7 +161,7 @@ namespace nana
|
||||
--(state_.index);
|
||||
else if(recycle)
|
||||
{
|
||||
state_.index = static_cast<unsigned>(module_->items.size() - 1);
|
||||
state_.index = module_->items.size() - 1;
|
||||
state_.offset_y = last_offset_y;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace nana
|
||||
}
|
||||
|
||||
if(state_.index >= state_.offset_y + module_->max_items)
|
||||
state_.offset_y = static_cast<unsigned>(state_.index - module_->max_items + 1);
|
||||
state_.offset_y = state_.index - module_->max_items + 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user