Commit 9ba3e559 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Use const-ref where the function returns a const-ref

parent 147bd26d
......@@ -67,8 +67,8 @@ protected:
const QString fileName = sourceModel()->index(sourceRow, 0, sourceParent).data().toString();
const auto nameAndPath = fileName.splitRef(QStringLiteral("{[split]}"));
const auto name = nameAndPath.at(0);
const auto path = nameAndPath.at(1);
const auto &name = nameAndPath.at(0);
const auto &path = nameAndPath.at(1);
int score = 0;
bool res = false;
......
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