Codechange: Silence warnings about intentionally unused parameters.
This commit is contained in:
@@ -126,7 +126,7 @@ uint TextfileWindow::GetContentHeight()
|
||||
return this->lines.back().bottom;
|
||||
}
|
||||
|
||||
/* virtual */ void TextfileWindow::UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize)
|
||||
/* virtual */ void TextfileWindow::UpdateWidgetSize(int widget, Dimension *size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension *fill, [[maybe_unused]] Dimension *resize)
|
||||
{
|
||||
switch (widget) {
|
||||
case WID_TF_BACKGROUND:
|
||||
@@ -516,7 +516,7 @@ void TextfileWindow::AfterLoadMarkdown()
|
||||
}
|
||||
}
|
||||
|
||||
/* virtual */ void TextfileWindow::OnClick(Point pt, int widget, int click_count)
|
||||
/* virtual */ void TextfileWindow::OnClick([[maybe_unused]] Point pt, int widget, [[maybe_unused]] int click_count)
|
||||
{
|
||||
switch (widget) {
|
||||
case WID_TF_WRAPTEXT:
|
||||
@@ -586,7 +586,7 @@ void TextfileWindow::AfterLoadMarkdown()
|
||||
this->SetupScrollbars(false);
|
||||
}
|
||||
|
||||
/* virtual */ void TextfileWindow::OnInvalidateData(int data, bool gui_scope)
|
||||
/* virtual */ void TextfileWindow::OnInvalidateData([[maybe_unused]] int data, [[maybe_unused]] bool gui_scope)
|
||||
{
|
||||
if (!gui_scope) return;
|
||||
|
||||
@@ -635,7 +635,7 @@ void TextfileWindow::ScrollToLine(size_t line)
|
||||
return true;
|
||||
}
|
||||
|
||||
/* virtual */ void TextfileWindow::SetFontNames(FontCacheSettings *settings, const char *font_name, const void *os_data)
|
||||
/* virtual */ void TextfileWindow::SetFontNames([[maybe_unused]] FontCacheSettings *settings, [[maybe_unused]] const char *font_name, [[maybe_unused]] const void *os_data)
|
||||
{
|
||||
#if defined(WITH_FREETYPE) || defined(_WIN32) || defined(WITH_COCOA)
|
||||
settings->mono.font = font_name;
|
||||
|
Reference in New Issue
Block a user