From 013dab4ba704565acfea4368285bbd6b71b84325 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 25 Jul 2024 10:52:54 +0200 Subject: [PATCH] Fix codestyle and apply pr feedback #2730 --- Source/Engine/Level/Actor.cpp | 2 +- Source/Engine/Level/Actor.h | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Engine/Level/Actor.cpp b/Source/Engine/Level/Actor.cpp index 08d2832d1..1cdfccd3b 100644 --- a/Source/Engine/Level/Actor.cpp +++ b/Source/Engine/Level/Actor.cpp @@ -543,7 +543,7 @@ void Actor::SetLayerRecursive(int32 layerIndex) OnLayerChanged(); } -void Actor::SetNameNoCopy(String&& value) +void Actor::SetName(String&& value) { if (_name == value) return; diff --git a/Source/Engine/Level/Actor.h b/Source/Engine/Level/Actor.h index 787cc6835..2a2fb1a4c 100644 --- a/Source/Engine/Level/Actor.h +++ b/Source/Engine/Level/Actor.h @@ -182,15 +182,16 @@ public: } /// - /// Sets the actor name without copying the string. + /// Sets the actor name. /// - void SetNameNoCopy(String&& value); + /// The value to set. + API_PROPERTY() void SetName(String&& value); /// /// Sets the actor name. /// /// The value to set. - API_PROPERTY() void SetName(const StringView& value); + void SetName(const StringView& value); public: ///