Skip to content

Commit

Permalink
use move() to return a lvalue reference
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer authored May 22, 2022
1 parent a265431 commit 3720749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/basetracktablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ QVariant BaseTrackTableModel::roleValue(
return QVariant();
case ColumnCache::COLUMN_LIBRARYTABLE_RATING:
case ColumnCache::COLUMN_LIBRARYTABLE_TIMESPLAYED:
return rawValue;
return std::move(rawValue);
default:
// Same value as for Qt::DisplayRole (see below)
break;
Expand Down

0 comments on commit 3720749

Please sign in to comment.