mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-21 03:16:40 +03:00
Bug fix/clang-tidy-performance (#300)
Various clang-tidy-performance fixes: * noexcept * performance-noexcept-swap * performance * performance-move-const-arg * performance-unnecessary-value-param * performance-inefficient-vector-operation * performance-no-int-to-ptr * add performance * performance-inefficient-string-concatenation * clang-analyzer-deadcode.DeadStores * performance-inefficient-vector-operation * clang-analyzer-core.NullDereference * clang-analyzer-core.UndefinedBinaryOperatorResult * clang-analyzer-core.CallAndMessage --------- Co-authored-by: gtsoul-tech <gtsoulkanakis@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ struct InitialResetEntry {
|
||||
std::shared_ptr<const NGHolder> body_in,
|
||||
const std::unordered_map<NFAVertex, u32> &body_regions_in,
|
||||
u32 sent_region_in, u32 first_bad_region_in)
|
||||
: sent(sent_in), body(body_in), body_regions(body_regions_in),
|
||||
: sent(sent_in), body(std::move(body_in)), body_regions(body_regions_in),
|
||||
sent_region(sent_region_in), first_bad_region(first_bad_region_in) {}
|
||||
|
||||
std::shared_ptr<const NGHolder> sent;
|
||||
|
||||
Reference in New Issue
Block a user