~ubuntu-branches/ubuntu/trusty/kdepimlibs/trusty

« back to all changes in this revision

Viewing changes to akonadi/collectionmodel.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-09-30 14:20:53 UTC
  • mfrom: (1.1.101)
  • Revision ID: package-import@ubuntu.com-20130930142053-k66oi27s75lt8l51
Tags: 4:4.11.2-0ubuntu1
New upstream bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
    return QModelIndex();
144
144
  }
145
145
 
146
 
  Collection col = d->collections.value( index.internalId() );
 
146
  const Collection col = d->collections.value( index.internalId() );
147
147
  if ( !col.isValid() ) {
148
148
    return QModelIndex();
149
149
  }
150
150
 
151
 
 
152
 
  Collection parentCol = d->collections.value( col.parentCollection().id() );
 
151
  const Collection parentCol = d->collections.value( col.parentCollection().id() );
153
152
  if ( !parentCol.isValid() ) {
154
153
    return QModelIndex();
155
154
  }