1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-30 07:34:37 +01:00

Codechange: replace C-style strings with std::string_view related to strings functions

This commit is contained in:
Rubidium
2025-04-27 09:40:27 +02:00
committed by rubidium42
parent 4e3e3d5be6
commit 781187b8a6
7 changed files with 31 additions and 31 deletions

View File

@@ -656,7 +656,7 @@ void TextfileWindow::ScrollToLine(size_t line)
return true;
}
/* virtual */ void TextfileWindow::SetFontNames([[maybe_unused]] FontCacheSettings *settings, [[maybe_unused]] const char *font_name, [[maybe_unused]] const void *os_data)
/* virtual */ void TextfileWindow::SetFontNames([[maybe_unused]] FontCacheSettings *settings, [[maybe_unused]] std::string_view font_name, [[maybe_unused]] const void *os_data)
{
#if defined(WITH_FREETYPE) || defined(_WIN32) || defined(WITH_COCOA)
settings->mono.font = font_name;