16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 03:29: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

@@ -1600,7 +1600,9 @@ transcripts_panel::update() {
for( auto const &transcript : ui::Transcripts.aLines ) {
if( Global.fTimeAngleDeg + ( transcript.fShow - Global.fTimeAngleDeg > 180 ? 360 : 0 ) < transcript.fShow ) { continue; }
text_lines.emplace_back( ExchangeCharInString( transcript.asText, '|', ' ' ), colors::white );
std::string text = transcript.asText;
std::ranges::replace(text, '|', ' ');
text_lines.emplace_back( text, colors::white );
}
}