Add 'const' to local variable
This commit is contained in:
parent
2547bdaf60
commit
9b486dda4a
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ void MTrack::processMeta(int tick, const MidiEvent& mm)
|
|||
break; // lyric and text are added in importmidi_lyrics.cpp
|
||||
case META_TRACK_NAME:
|
||||
{
|
||||
std::string text = MidiCharset::fromUchar(data);
|
||||
const std::string text = MidiCharset::fromUchar(data);
|
||||
if (name.isEmpty())
|
||||
name = MidiCharset::convertToCharset(text);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue