fixed move on return

This commit is contained in:
silverqx
2022-08-04 13:02:50 +02:00
parent 43ee3640e7
commit ea16c25ecb
+1 -2
View File
@@ -93,12 +93,11 @@ QString SeederCommand::prepareSeederClassName(QString &&className)
// Append Seeder
if (!className.endsWith(Seeder_lc))
return className.append(Seeder);
return std::move(className.append(Seeder));
// Change Xyzseeder to XyzSeeder
className[className.size() - Seeder_lc_size] = QChar('S');
// CUR stackoverflow, still confused about this moves, when I assign a new value silverqx
return std::move(className);
}