[Scummvm-cvs-logs] CVS: scummvm/backends/midi/mt32 synth.cpp,1.22,1.23 synth.h,1.8,1.9

Max Horn fingolfin at users.sourceforge.net
Mon Nov 15 15:34:05 CET 2004


Update of /cvsroot/scummvm/scummvm/backends/midi/mt32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26614/mt32

Modified Files:
	synth.cpp synth.h 
Log Message:
const const const

Index: synth.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/mt32/synth.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- synth.cpp	14 Nov 2004 08:04:55 -0000	1.22
+++ synth.cpp	15 Nov 2004 23:33:06 -0000	1.23
@@ -125,7 +125,7 @@
 	close(); // Make sure we're closed and everything is freed
 }
 
-void Synth::report(ReportType type, void *data) {
+void Synth::report(ReportType type, const void *data) {
 	if (myProp.report != NULL) {
 		myProp.report(myProp.userData, type, data);
 	}
@@ -716,7 +716,7 @@
 		}
 	}
 
-	isOpen=false;
+	isOpen = false;
 }
 
 void Synth::playMsg(Bit32u msg) {

Index: synth.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/mt32/synth.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- synth.h	14 Nov 2004 04:13:14 -0000	1.8
+++ synth.h	15 Nov 2004 23:33:06 -0000	1.9
@@ -84,7 +84,7 @@
 	// This is used as the first argument to all callbacks
 	void *userData;
 	// Callback for reporting various errors and information. May be NULL
-	void (*report)(void *userData, ReportType type, void *reportData);
+	void (*report)(void *userData, ReportType type, const void *reportData);
 	// Callback for debug messages, in vprintf() format
 	void (*printDebug)(void *userData, const char *fmt, va_list list);
 	// Callback for providing an implementation of File, opened and ready for use
@@ -163,7 +163,7 @@
 	int dumpSysex(char *filename);
 
 protected:
-	void report(ReportType type, void *reportData);
+	void report(ReportType type, const void *reportData);
 	File *openFile(const char *filename, File::OpenMode mode);
 	void closeFile(File *file);
 	void printDebug(const char *fmt, ...);





More information about the Scummvm-git-logs mailing list