add GetChars() accessors to many FString uses where const char* is wanted.

By no means complete, it's just a start to get rid of that automatic type conversion operator.
This commit is contained in:
Christoph Oelckers 2023-10-03 14:27:13 +02:00
commit 1717ff47b2
28 changed files with 92 additions and 97 deletions

View file

@ -173,7 +173,7 @@ bool CT_Responder (event_t *ev)
else if (ev->data1 == 'V' && (ev->data3 & GKM_CTRL))
#endif // __APPLE__
{
CT_PasteChat(I_GetFromClipboard(false));
CT_PasteChat(I_GetFromClipboard(false).GetChars());
}
}
else if (ev->subtype == EV_GUI_Char)
@ -291,7 +291,7 @@ void CT_Drawer (void)
DrawText(drawer, displayfont, CR_GREEN, 0, y, prompt.GetChars(),
DTA_VirtualWidth, screen_width, DTA_VirtualHeight, screen_height, DTA_KeepRatio, true, TAG_DONE);
DrawText(drawer, displayfont, CR_GREY, promptwidth, y, printstr,
DrawText(drawer, displayfont, CR_GREY, promptwidth, y, printstr.GetChars(),
DTA_VirtualWidth, screen_width, DTA_VirtualHeight, screen_height, DTA_KeepRatio, true, TAG_DONE);
}
}