Mercurial > audlegacy-plugins
diff src/modplug/modplugbmp.cxx @ 1940:4b3d67ce6b3d
Fix warnings properly by using std::string here.
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Mon, 01 Oct 2007 16:09:10 -0500 |
| parents | b6d547a4ca50 |
| children | a98c54cb96aa |
line wrap: on
line diff
--- a/src/modplug/modplugbmp.cxx Mon Oct 01 16:07:46 2007 -0500 +++ b/src/modplug/modplugbmp.cxx Mon Oct 01 16:09:10 2007 -0500 @@ -506,7 +506,7 @@ { CSoundFile* lSoundFile; Archive* lArchive; - const gchar* tmps; + std::string tmps; //open and mmap the file lArchive = OpenArchive(aFilename); @@ -545,7 +545,7 @@ case MOD_TYPE_PSM: tmps = "Protracker Studio Module"; break; default: tmps = "ModPlug unknown"; break; } - tuple_associate_string(ti, FIELD_CODEC, NULL, tmps); + tuple_associate_string(ti, FIELD_CODEC, NULL, tmps.c_str()); tuple_associate_string(ti, FIELD_QUALITY, NULL, "sequenced"); tuple_associate_int(ti, FIELD_LENGTH, NULL, lSoundFile->GetSongTime() * 1000);
