~sil2100/nux/precise_sru-1

« back to all changes in this revision

Viewing changes to Nux/CoverflowModel.cpp

  • Committer: Didier Roche
  • Date: 2012-03-12 08:57:27 UTC
  • mfrom: (159.3.35)
  • Revision ID: didier.roche@canonical.com-20120312085727-9fyfwnno545c46uz
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
 
112
112
void CoverflowModel::SetSelection(size_t index)
113
113
{
114
 
  index = std::min(index, pimpl->items_.size() - 1);
 
114
  index = std::min<size_t>(index, pimpl->items_.size() - 1);
115
115
  if (index != pimpl->selection_index_)
116
116
  {
117
117
    pimpl->selection_index_ = index;