Commit c7d3f6e8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor clazy fix

parent dadd3957
Pipeline #23034 passed with stage
in 14 minutes and 33 seconds
......@@ -341,7 +341,7 @@ void MultiplyingLineView::clearModified()
void MultiplyingLineView::setFocus()
{
if (!mLines.empty() && mLines.last()->isActive()) {
if (!mLines.empty() && mLines.constLast()->isActive()) {
setFocusBottom();
} else {
setFocusTop();
......@@ -351,7 +351,7 @@ void MultiplyingLineView::setFocus()
void MultiplyingLineView::setFocusTop()
{
if (!mLines.empty()) {
MultiplyingLine *line = mLines.first();
MultiplyingLine *line = mLines.constFirst();
if (line) {
line->activate();
} else {
......@@ -364,7 +364,7 @@ void MultiplyingLineView::setFocusTop()
void MultiplyingLineView::setFocusBottom()
{
MultiplyingLine *line = mLines.last();
MultiplyingLine *line = mLines.constLast();
if (line) {
ensureWidgetVisible(line);
line->activate();
......
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