From 5580720ae035789bdcf996d197f50f7e347461b4 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Mon, 17 Jun 2024 09:27:41 -0600 Subject: [PATCH] Fix inconsistent factory function name --- include/SFML/Graphics/Font.hpp | 2 +- src/SFML/Graphics/Font.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/SFML/Graphics/Font.hpp b/include/SFML/Graphics/Font.hpp index 56858a1b7..294de21ff 100644 --- a/include/SFML/Graphics/Font.hpp +++ b/include/SFML/Graphics/Font.hpp @@ -315,7 +315,7 @@ private: //////////////////////////////////////////////////////////// struct Page { - [[nodiscard]] static std::optional make(bool smooth); + [[nodiscard]] static std::optional create(bool smooth); explicit Page(Texture&& texture); GlyphTable glyphs; //!< Table mapping code points to their corresponding glyph diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index c24be8b78..83758aa5c 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -467,7 +467,7 @@ Font::Page& Font::loadPage(unsigned int characterSize) const if (const auto it = m_pages.find(characterSize); it != m_pages.end()) return it->second; - auto page = Page::make(m_isSmooth); + auto page = Page::create(m_isSmooth); assert(page && "Font::loadPage() Failed to load page"); return m_pages.emplace(characterSize, std::move(*page)).first->second; } @@ -749,7 +749,7 @@ bool Font::setCurrentSize(unsigned int characterSize) const //////////////////////////////////////////////////////////// -std::optional Font::Page::make(bool smooth) +std::optional Font::Page::create(bool smooth) { // Make sure that the texture is initialized by default Image image({128, 128}, Color::Transparent);