16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 01:59:19 +02:00

Replace ExchangeCharInString with std::ranges::replace

This commit is contained in:
docentYT
2026-05-01 00:43:22 +02:00
parent 2faf3293b1
commit 350123fb9e
4 changed files with 5 additions and 23 deletions

View File

@@ -20,7 +20,8 @@ TTranscripts::AddLine( std::string const &txt, float show, float hide, bool it )
hide = Global.fTimeAngleDeg + hide / 240.0;
TTranscript transcript;
transcript.asText = ExchangeCharInString( txt, '|', ' ' ); // NOTE: legacy transcript lines use | as new line mark
transcript.asText = txt;
std::ranges::replace(transcript.asText, '|', ' '); // NOTE: legacy transcript lines use | as new line mark
transcript.fShow = show;
transcript.fHide = hide;
transcript.bItalic = it;