plugins/cmake: QString::remove operates on same object, no need to reassign

parent bb8f7273
...@@ -108,7 +108,7 @@ QString CMakeCommandsContents::descriptionForIdentifier(const QString& id, CMake ...@@ -108,7 +108,7 @@ QString CMakeCommandsContents::descriptionForIdentifier(const QString& id, CMake
QString desc; QString desc;
if(args[t].size() != 0) { if(args[t].size() != 0) {
desc = CMake::executeProcess(CMakeBuilderSettings::self()->cmakeExecutable().toLocalFile(), { args[t], id.simplified() }); desc = CMake::executeProcess(CMakeBuilderSettings::self()->cmakeExecutable().toLocalFile(), { args[t], id.simplified() });
desc = desc.remove(QStringLiteral(":ref:")); desc.remove(QLatin1String(":ref:"));
const QString rst2html = QStandardPaths::findExecutable(QStringLiteral("rst2html")); const QString rst2html = QStandardPaths::findExecutable(QStringLiteral("rst2html"));
if (rst2html.isEmpty()) { if (rst2html.isEmpty()) {
......
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