mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Fixed compilation with Clang
error: cannot pass object of non-trivial type 'FString' through variadic constructor; call will abort at runtime [-Wnon-pod-varargs]
This commit is contained in:
parent
42a34ddd58
commit
00dc649cc2
1 changed files with 4 additions and 4 deletions
|
@ -1306,7 +1306,7 @@ static void InitMusicMenus()
|
|||
{
|
||||
if (fluidmenu != nullptr)
|
||||
{
|
||||
auto it = CreateOptionMenuItemCommand(key, FStringf("fluid_patchset %s", NicePath(value)), true);
|
||||
auto it = CreateOptionMenuItemCommand(key, FStringf("fluid_patchset %s", NicePath(value).GetChars()), true);
|
||||
static_cast<DOptionMenuDescriptor*>(*fluidmenu)->mItems.Push(it);
|
||||
}
|
||||
}
|
||||
|
@ -1327,12 +1327,12 @@ static void InitMusicMenus()
|
|||
{
|
||||
if (gusmenu != nullptr)
|
||||
{
|
||||
auto it = CreateOptionMenuItemCommand(key, FStringf("midi_config %s", NicePath(value)), true);
|
||||
auto it = CreateOptionMenuItemCommand(key, FStringf("midi_config %s", NicePath(value).GetChars()), true);
|
||||
static_cast<DOptionMenuDescriptor*>(*gusmenu)->mItems.Push(it);
|
||||
}
|
||||
if (wildmidimenu != nullptr)
|
||||
{
|
||||
auto it = CreateOptionMenuItemCommand(key, FStringf("wildmidi_config %s", NicePath(value)), true);
|
||||
auto it = CreateOptionMenuItemCommand(key, FStringf("wildmidi_config %s", NicePath(value).GetChars()), true);
|
||||
static_cast<DOptionMenuDescriptor*>(*wildmidimenu)->mItems.Push(it);
|
||||
}
|
||||
}
|
||||
|
@ -1356,7 +1356,7 @@ static void InitMusicMenus()
|
|||
{
|
||||
if (timiditymenu != nullptr)
|
||||
{
|
||||
auto it = CreateOptionMenuItemCommand(key, FStringf("timidity_exe %s", NicePath(value)), true);
|
||||
auto it = CreateOptionMenuItemCommand(key, FStringf("timidity_exe %s", NicePath(value).GetChars()), true);
|
||||
static_cast<DOptionMenuDescriptor*>(*timiditymenu)->mItems.Push(it);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue