From 6b4c287c2033e54f3e9507b13b0c2d99fdca17c9 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Wed, 4 May 2022 02:23:34 +0300 Subject: [PATCH] Fixed unnecessary instantiation Co-authored-by: kimci86 --- src/SFML/Graphics/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index 7b9527593..568578516 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -534,7 +534,7 @@ void Font::cleanup() //////////////////////////////////////////////////////////// Font::Page& Font::loadPage(unsigned int characterSize) const { - return m_pages.try_emplace(characterSize, Page(m_isSmooth)).first->second; + return m_pages.try_emplace(characterSize, m_isSmooth).first->second; }