From 1f11e91bed15679ad2d1d290ff7062f4cdd0c53a Mon Sep 17 00:00:00 2001 From: Vittorio Romeo Date: Sun, 22 Sep 2024 12:41:32 +0200 Subject: [PATCH] Avoid unnecessary assignment in `Text::findCharacterPos` --- src/SFML/Graphics/Text.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/SFML/Graphics/Text.cpp b/src/SFML/Graphics/Text.cpp index c59db2ee3..27f3912ec 100644 --- a/src/SFML/Graphics/Text.cpp +++ b/src/SFML/Graphics/Text.cpp @@ -312,9 +312,7 @@ Vector2f Text::findCharacterPos(std::size_t index) const } // Transform the position to global coordinates - position = getTransform().transformPoint(position); - - return position; + return getTransform().transformPoint(position); }