17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 07:29:20 +02:00

refactor(sonar): take read-only string parameters as std::string_view (cpp:S6009)

The Windows messaging helpers keep std::string, they need c_str().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jerrrrycho
2026-10-10 17:28:41 +02:00
parent ec8a333753
commit adfad8016e
11 changed files with 14 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ TTranscripts Transcripts;
// dodanie linii do tabeli, (show) i (hide) w [s] od aktualnego czasu
void
TTranscripts::AddLine( std::string const &txt, float show, float hide, bool it ) {
TTranscripts::AddLine( std::string_view txt, float show, float hide, bool it ) {
if( show == hide ) { return; } // komentarz jest ignorowany