Codechange: use std::source_location over __FILE__ and __LINE__ for WindowDesc
This commit is contained in:
@@ -968,14 +968,14 @@ static constexpr NWidgetPart _nested_story_book_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _story_book_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _story_book_desc(
|
||||
WDP_AUTO, "view_story", 400, 300,
|
||||
WC_STORY_BOOK, WC_NONE,
|
||||
0,
|
||||
std::begin(_nested_story_book_widgets), std::end(_nested_story_book_widgets)
|
||||
);
|
||||
|
||||
static WindowDesc _story_book_gs_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _story_book_gs_desc(
|
||||
WDP_CENTER, "view_story_gs", 400, 300,
|
||||
WC_STORY_BOOK, WC_NONE,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user