remove redundant moves

This commit is contained in:
Konstantinos Margaritis 2024-01-17 17:15:32 +02:00
parent 9fac2bf78d
commit 5e1972efce
5 changed files with 5 additions and 5 deletions

View File

@ -1299,7 +1299,7 @@ unique_ptr<raw_report_info> gough_build_strat::gatherReports(
*arbReport = MO_INVALID_IDX; *arbReport = MO_INVALID_IDX;
assert(!ri->rl.empty()); /* all components should be able to generate assert(!ri->rl.empty()); /* all components should be able to generate
reports */ reports */
return std::move(ri); return ri;
} }
u32 raw_gough_report_info_impl::getReportListSize() const { u32 raw_gough_report_info_impl::getReportListSize() const {

View File

@ -462,7 +462,7 @@ unique_ptr<raw_report_info> mcclellan_build_strat::gatherReports(
*isSingleReport = 0; *isSingleReport = 0;
} }
return std::move(ri); return ri;
} }
u32 raw_report_info_impl::getReportListSize() const { u32 raw_report_info_impl::getReportListSize() const {

View File

@ -270,7 +270,7 @@ unique_ptr<raw_report_info> sheng_build_strat::gatherReports(
*isSingleReport = 0; *isSingleReport = 0;
} }
return std::move(ri); return ri;
} }
u32 sheng_build_strat::max_allowed_offset_accel() const { u32 sheng_build_strat::max_allowed_offset_accel() const {

View File

@ -2024,7 +2024,7 @@ unique_ptr<Component> parse(const char *ptr, ParseMode &globalMode) {
// Ensure that all references are valid. // Ensure that all references are valid.
checkReferences(*rootSeq, groupIndex, groupNames); checkReferences(*rootSeq, groupIndex, groupNames);
return std::move(rootSeq); return rootSeq;
} catch (LocatedParseError &error) { } catch (LocatedParseError &error) {
if (ts >= ptr && ts <= pe) { if (ts >= ptr && ts <= pe) {
error.locate(ts - ptr); error.locate(ts - ptr);

View File

@ -174,7 +174,7 @@ unique_ptr<EngineStream> EngineHyperscan::streamOpen(EngineContext &ectx,
return nullptr; return nullptr;
} }
stream->sn = streamId; stream->sn = streamId;
return std::move(stream); return stream;
} }
void EngineHyperscan::streamClose(unique_ptr<EngineStream> stream, void EngineHyperscan::streamClose(unique_ptr<EngineStream> stream,