Add 'const' to local variable

This commit is contained in:
Andrey M. Tokarev 2014-01-08 21:00:25 +04:00
parent 2547bdaf60
commit 9b486dda4a

View file

@ -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);
}