diff --git a/Source/ALS/Private/Nodes/AlsAnimNode_CurvesBlend.cpp b/Source/ALS/Private/Nodes/AlsAnimNode_CurvesBlend.cpp index cf92b3d8b..fc6963dfe 100644 --- a/Source/ALS/Private/Nodes/AlsAnimNode_CurvesBlend.cpp +++ b/Source/ALS/Private/Nodes/AlsAnimNode_CurvesBlend.cpp @@ -95,9 +95,8 @@ void FAlsAnimNode_CurvesBlend::GatherDebugData(FNodeDebugData& DebugData) { DECLARE_SCOPE_HIERARCHICAL_COUNTER_ANIMNODE(GatherDebugData) - TStringBuilder<256> DebugItemBuilder; + TStringBuilder<256> DebugItemBuilder{InPlace, DebugData.GetNodeName(this), TEXTVIEW(": Blend Amount: ")}; - DebugItemBuilder << DebugData.GetNodeName(this) << TEXTVIEW(": Blend Amount: "); DebugItemBuilder.Appendf(TEXT("%.2f"), GetBlendAmount()); DebugData.AddDebugItem(FString{DebugItemBuilder}); diff --git a/Source/ALS/Private/Notifies/AlsAnimNotifyState_SetLocomotionAction.cpp b/Source/ALS/Private/Notifies/AlsAnimNotifyState_SetLocomotionAction.cpp index 74f6a5495..bb8625a0b 100644 --- a/Source/ALS/Private/Notifies/AlsAnimNotifyState_SetLocomotionAction.cpp +++ b/Source/ALS/Private/Notifies/AlsAnimNotifyState_SetLocomotionAction.cpp @@ -13,10 +13,10 @@ UAlsAnimNotifyState_SetLocomotionAction::UAlsAnimNotifyState_SetLocomotionAction FString UAlsAnimNotifyState_SetLocomotionAction::GetNotifyName_Implementation() const { - TStringBuilder<256> NotifyNameBuilder; - - NotifyNameBuilder << TEXTVIEW("Als Set Locomotion Action: ") - << FName::NameToDisplayString(UAlsUtility::GetSimpleTagName(LocomotionAction).ToString(), false); + TStringBuilder<256> NotifyNameBuilder{ + InPlace, TEXTVIEW("Als Set Locomotion Action: "), + FName::NameToDisplayString(UAlsUtility::GetSimpleTagName(LocomotionAction).ToString(), false) + }; return FString{NotifyNameBuilder}; } diff --git a/Source/ALS/Private/Notifies/AlsAnimNotifyState_SetRootMotionScale.cpp b/Source/ALS/Private/Notifies/AlsAnimNotifyState_SetRootMotionScale.cpp index 03dd7705b..328c17df7 100644 --- a/Source/ALS/Private/Notifies/AlsAnimNotifyState_SetRootMotionScale.cpp +++ b/Source/ALS/Private/Notifies/AlsAnimNotifyState_SetRootMotionScale.cpp @@ -17,9 +17,8 @@ UAlsAnimNotifyState_SetRootMotionScale::UAlsAnimNotifyState_SetRootMotionScale() FString UAlsAnimNotifyState_SetRootMotionScale::GetNotifyName_Implementation() const { - TStringBuilder<64> NotifyNameBuilder; + TStringBuilder<64> NotifyNameBuilder{InPlace, TEXTVIEW("Als Set Root Motion Scale: ")}; - NotifyNameBuilder << TEXTVIEW("Als Set Root Motion Scale: "); NotifyNameBuilder.Appendf(TEXT("%.2f"), TranslationScale); return FString{NotifyNameBuilder}; diff --git a/Source/ALS/Private/Notifies/AlsAnimNotify_FootstepEffects.cpp b/Source/ALS/Private/Notifies/AlsAnimNotify_FootstepEffects.cpp index c6be9f156..75cc5f2d5 100644 --- a/Source/ALS/Private/Notifies/AlsAnimNotify_FootstepEffects.cpp +++ b/Source/ALS/Private/Notifies/AlsAnimNotify_FootstepEffects.cpp @@ -48,9 +48,7 @@ void UAlsFootstepEffectsSettings::PostEditChangeProperty(FPropertyChangedEvent& FString UAlsAnimNotify_FootstepEffects::GetNotifyName_Implementation() const { - TStringBuilder<64> NotifyNameBuilder; - - NotifyNameBuilder << TEXTVIEW("Als Footstep Effects: ") << AlsEnumUtility::GetNameStringByValue(FootBone); + TStringBuilder<64> NotifyNameBuilder{InPlace, TEXTVIEW("Als Footstep Effects: "), AlsEnumUtility::GetNameStringByValue(FootBone)}; return FString{NotifyNameBuilder}; } diff --git a/Source/ALS/Private/Notifies/AlsAnimNotify_SetGroundedEntryMode.cpp b/Source/ALS/Private/Notifies/AlsAnimNotify_SetGroundedEntryMode.cpp index 99fb77ed0..bc2842ab3 100644 --- a/Source/ALS/Private/Notifies/AlsAnimNotify_SetGroundedEntryMode.cpp +++ b/Source/ALS/Private/Notifies/AlsAnimNotify_SetGroundedEntryMode.cpp @@ -17,10 +17,10 @@ UAlsAnimNotify_SetGroundedEntryMode::UAlsAnimNotify_SetGroundedEntryMode() FString UAlsAnimNotify_SetGroundedEntryMode::GetNotifyName_Implementation() const { - TStringBuilder<256> NotifyNameBuilder; - - NotifyNameBuilder << TEXTVIEW("Als Set Grounded Entry Mode: ") - << FName::NameToDisplayString(UAlsUtility::GetSimpleTagName(GroundedEntryMode).ToString(), false); + TStringBuilder<256> NotifyNameBuilder{ + InPlace, TEXTVIEW("Als Set Grounded Entry Mode: "), + FName::NameToDisplayString(UAlsUtility::GetSimpleTagName(GroundedEntryMode).ToString(), false) + }; return FString{NotifyNameBuilder}; } diff --git a/Source/ALS/Private/RootMotionSources/AlsRootMotionSource_Mantling.cpp b/Source/ALS/Private/RootMotionSources/AlsRootMotionSource_Mantling.cpp index 46d434b4f..8cc8beeaf 100644 --- a/Source/ALS/Private/RootMotionSources/AlsRootMotionSource_Mantling.cpp +++ b/Source/ALS/Private/RootMotionSources/AlsRootMotionSource_Mantling.cpp @@ -175,10 +175,9 @@ UScriptStruct* FAlsRootMotionSource_Mantling::GetScriptStruct() const FString FAlsRootMotionSource_Mantling::ToSimpleString() const { - TStringBuilder<256> StringBuilder; - - StringBuilder << ALS_GET_TYPE_STRING(FAlsRootMotionSource_Mantling) - << TEXTVIEW(" (") << InstanceName << TEXTVIEW(", ") << LocalID << TEXT(')'); + TStringBuilder<256> StringBuilder{ + InPlace, ALS_GET_TYPE_STRING(FAlsRootMotionSource_Mantling), TEXTVIEW(" ("), InstanceName, TEXTVIEW(", "), LocalID, TEXT(')') + }; return FString{StringBuilder}; } diff --git a/Source/ALSCamera/Private/Notifies/AlsAnimNotify_CameraShake.cpp b/Source/ALSCamera/Private/Notifies/AlsAnimNotify_CameraShake.cpp index 17de49bae..1bd970b31 100644 --- a/Source/ALSCamera/Private/Notifies/AlsAnimNotify_CameraShake.cpp +++ b/Source/ALSCamera/Private/Notifies/AlsAnimNotify_CameraShake.cpp @@ -16,9 +16,7 @@ UAlsAnimNotify_CameraShake::UAlsAnimNotify_CameraShake() FString UAlsAnimNotify_CameraShake::GetNotifyName_Implementation() const { - TStringBuilder<256> NotifyNameBuilder; - - NotifyNameBuilder << TEXTVIEW("Als Camera Shake: "); + TStringBuilder<256> NotifyNameBuilder{InPlace, TEXTVIEW("Als Camera Shake: ")}; if (IsValid(CameraShakeClass)) {