Use std::string_view for strings
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Nz
|
||||
Node::SetParent(nodeComponent, keepDerived);
|
||||
}
|
||||
|
||||
void NodeComponent::SetParentJoint(entt::handle entity, const std::string& jointName, bool keepDerived)
|
||||
void NodeComponent::SetParentJoint(entt::handle entity, std::string_view jointName, bool keepDerived)
|
||||
{
|
||||
SkeletonComponentBase* skeletonComponent = entity.try_get<SkeletonComponent>();
|
||||
if (!skeletonComponent)
|
||||
|
||||
@@ -376,7 +376,7 @@ namespace Nz
|
||||
return false;
|
||||
};
|
||||
|
||||
void RichTextDrawer::GenerateGlyphs(const Font& font, const Color& color, TextStyleFlags style, unsigned int characterSize, const Color& outlineColor, float characterSpacingOffset, float lineSpacingOffset, float outlineThickness, const std::string& text) const
|
||||
void RichTextDrawer::GenerateGlyphs(const Font& font, const Color& color, TextStyleFlags style, unsigned int characterSize, const Color& outlineColor, float characterSpacingOffset, float lineSpacingOffset, float outlineThickness, std::string_view text) const
|
||||
{
|
||||
if (text.empty())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user