changeset 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 0c03bba55cbd
children 5412f8c2ec29
files src/modplug/modplugbmp.cxx
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);