mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-14 05:26:10 +00:00
CVisorFlare: Pass flares by value and use std::move
Same behavior, but allows calling code to move into the parameter and avoid copies entirely.
This commit is contained in:
@@ -27,9 +27,9 @@ std::optional<CVisorFlare::CFlareDef> CVisorFlare::LoadFlareDef(CInputStream& in
|
||||
}
|
||||
|
||||
CVisorFlare::CVisorFlare(EBlendMode blendMode, bool b1, float f1, float f2, float f3, u32 w1, u32 w2,
|
||||
const std::vector<CFlareDef>& flares)
|
||||
std::vector<CFlareDef> flares)
|
||||
: x0_blendMode(blendMode)
|
||||
, x4_flareDefs(flares)
|
||||
, x4_flareDefs(std::move(flares))
|
||||
, x14_b1(b1)
|
||||
, x18_f1(std::max(f1, FLT_EPSILON))
|
||||
, x1c_f2(f2)
|
||||
|
||||
Reference in New Issue
Block a user