Skip to content

Commit

Permalink
fixed move on return
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 4, 2022
1 parent 43ee364 commit ea16c25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tom/src/tom/commands/make/seedercommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ea16c25

Please sign in to comment.