mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
remove redundant moves
This commit is contained in:
parent
9fac2bf78d
commit
5e1972efce
@ -1299,7 +1299,7 @@ unique_ptr<raw_report_info> gough_build_strat::gatherReports(
|
||||
*arbReport = MO_INVALID_IDX;
|
||||
assert(!ri->rl.empty()); /* all components should be able to generate
|
||||
reports */
|
||||
return std::move(ri);
|
||||
return ri;
|
||||
}
|
||||
|
||||
u32 raw_gough_report_info_impl::getReportListSize() const {
|
||||
|
@ -462,7 +462,7 @@ unique_ptr<raw_report_info> mcclellan_build_strat::gatherReports(
|
||||
*isSingleReport = 0;
|
||||
}
|
||||
|
||||
return std::move(ri);
|
||||
return ri;
|
||||
}
|
||||
|
||||
u32 raw_report_info_impl::getReportListSize() const {
|
||||
|
@ -270,7 +270,7 @@ unique_ptr<raw_report_info> sheng_build_strat::gatherReports(
|
||||
*isSingleReport = 0;
|
||||
}
|
||||
|
||||
return std::move(ri);
|
||||
return ri;
|
||||
}
|
||||
|
||||
u32 sheng_build_strat::max_allowed_offset_accel() const {
|
||||
|
@ -2024,7 +2024,7 @@ unique_ptr<Component> parse(const char *ptr, ParseMode &globalMode) {
|
||||
// Ensure that all references are valid.
|
||||
checkReferences(*rootSeq, groupIndex, groupNames);
|
||||
|
||||
return std::move(rootSeq);
|
||||
return rootSeq;
|
||||
} catch (LocatedParseError &error) {
|
||||
if (ts >= ptr && ts <= pe) {
|
||||
error.locate(ts - ptr);
|
||||
|
@ -174,7 +174,7 @@ unique_ptr<EngineStream> EngineHyperscan::streamOpen(EngineContext &ectx,
|
||||
return nullptr;
|
||||
}
|
||||
stream->sn = streamId;
|
||||
return std::move(stream);
|
||||
return stream;
|
||||
}
|
||||
|
||||
void EngineHyperscan::streamClose(unique_ptr<EngineStream> stream,
|
||||
|
Loading…
x
Reference in New Issue
Block a user