Commit fea6a804 authored by Laurent Montel's avatar Laurent Montel 😁

Add const ref

parent a64adaf2
......@@ -272,7 +272,7 @@ QVariant AttachmentModel::data( const QModelIndex &index, int role ) const
return QVariant();
}
AttachmentPart::Ptr part = d->parts[ index.row() ];
const AttachmentPart::Ptr part = d->parts.at( index.row() );
if( role == Qt::DisplayRole ) {
switch( index.column() ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment