Fix inconsistent factory function name

This commit is contained in:
Chris Thrasher 2024-06-17 09:27:41 -06:00
parent 16e9ae131d
commit 5580720ae0
2 changed files with 3 additions and 3 deletions

View File

@ -315,7 +315,7 @@ private:
////////////////////////////////////////////////////////////
struct Page
{
[[nodiscard]] static std::optional<Page> make(bool smooth);
[[nodiscard]] static std::optional<Page> create(bool smooth);
explicit Page(Texture&& texture);
GlyphTable glyphs; //!< Table mapping code points to their corresponding glyph

View File

@ -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> Font::Page::make(bool smooth)
std::optional<Font::Page> Font::Page::create(bool smooth)
{
// Make sure that the texture is initialized by default
Image image({128, 128}, Color::Transparent);