mirror of https://github.com/AxioDL/metaforce.git
CAtomicAlpha: Remove .data() call in SBomb constructor
We can just use the std::string_view constructor for std::string, which eliminates an unnecessary strlen call.
This commit is contained in:
parent
18eb2b73b1
commit
e0e38b569e
|
@ -15,7 +15,7 @@ class CAtomicAlpha : public CPatterned {
|
||||||
pas::ELocomotionType x10_locomotionType;
|
pas::ELocomotionType x10_locomotionType;
|
||||||
float x14_scaleTime = FLT_MAX;
|
float x14_scaleTime = FLT_MAX;
|
||||||
SBomb(const std::string_view locator, pas::ELocomotionType locomotionType)
|
SBomb(const std::string_view locator, pas::ELocomotionType locomotionType)
|
||||||
: x0_locatorName(locator.data()), x10_locomotionType(locomotionType) {}
|
: x0_locatorName(locator), x10_locomotionType(locomotionType) {}
|
||||||
};
|
};
|
||||||
bool x568_24_inRange : 1;
|
bool x568_24_inRange : 1;
|
||||||
bool x568_25_invisible : 1;
|
bool x568_25_invisible : 1;
|
||||||
|
|
Loading…
Reference in New Issue