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:
Lioncash 2019-10-03 00:41:23 -04:00
parent 18eb2b73b1
commit e0e38b569e
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class CAtomicAlpha : public CPatterned {
pas::ELocomotionType x10_locomotionType;
float x14_scaleTime = FLT_MAX;
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_25_invisible : 1;