Skip to content

Commit

Permalink
Fix redundant std::move in return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed Nov 21, 2023
1 parent 08cb89f commit 5898f6a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/muse/components/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,14 @@ QGradient getGradientFromColor(const QColor& c, const QPoint& start, const QPoin
gradient.setColorAt(.5, c);
gradient.setColorAt(1, c.darker(100 + strength/3*2));

return std::move(gradient);
// REMOVE Tim. new. Changed.
// /home/tim/Source/muse_20220930_master_add_mute_and_solo_ctrls/src/muse/components/utils.cpp:762:21: error: redundant move in return statement [-Werror=redundant-move]
// 762 | return std::move(gradient);
// | ~~~~~~~~~^~~~~~~~~~
// /home/tim/Source/muse_20220930_master_add_mute_and_solo_ctrls/src/muse/components/utils.cpp:762:21: note: remove ‘std::move’ call
//
// return std::move(gradient);
return gradient;
}

bool isColorBright(const QColor& c)
Expand Down

0 comments on commit 5898f6a

Please sign in to comment.