mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-19 07:31:15 +00:00
Remove redundant moves.
This commit is contained in:
parent
35a1b44c21
commit
c58a2ee624
@ -299,7 +299,7 @@ std::unique_ptr<Analyser::Static::Target> get_target<TargetPlatform::Plus4>(
|
||||
|
||||
// Attach a 1541 if there are any disks here.
|
||||
target->has_c1541 = !target->media.disks.empty();
|
||||
return std::move(target);
|
||||
return target;
|
||||
}
|
||||
|
||||
template<>
|
||||
@ -392,7 +392,7 @@ std::unique_ptr<Analyser::Static::Target> get_target<TargetPlatform::Vic20>(
|
||||
|
||||
// Attach a 1540 if there are any disks here.
|
||||
target->has_c1540 = !target->media.disks.empty();
|
||||
return std::move(target);
|
||||
return target;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ static std::optional<File> ZX80FileFromData(const std::vector<uint8_t> &data) {
|
||||
File file;
|
||||
file.data = data;
|
||||
file.isZX81 = false;
|
||||
return std::move(file);
|
||||
return file;
|
||||
}
|
||||
|
||||
std::optional<File> ZX81FileFromData(const std::vector<uint8_t> &data) {
|
||||
@ -87,7 +87,7 @@ std::optional<File> ZX81FileFromData(const std::vector<uint8_t> &data) {
|
||||
file.name = StringFromData(name_data, true);
|
||||
file.data = data;
|
||||
file.isZX81 = true;
|
||||
return std::move(file);
|
||||
return file;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user