From 1ef9783c3faed6a18e8cc2fba34f48b50bedd08a Mon Sep 17 00:00:00 2001 From: John Glover Date: Sat, 30 Jun 2012 18:48:33 +0100 Subject: [sndobj] Make ErrorMessage method const char* --- src/sndobj/SndIO.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/sndobj/SndIO.cpp') diff --git a/src/sndobj/SndIO.cpp b/src/sndobj/SndIO.cpp index 6f79feb..dfa790c 100644 --- a/src/sndobj/SndIO.cpp +++ b/src/sndobj/SndIO.cpp @@ -115,9 +115,9 @@ SndIO::SndIO(short channels, short bits, SndObj** inputlist, return 1; } - char* SndIO::ErrorMessage(){ +const char* SndIO::ErrorMessage(){ - char* message; + const char* message; switch(m_error){ @@ -148,7 +148,4 @@ SndIO::SndIO(short channels, short bits, SndObj** inputlist, } return message; - - } - - +} -- cgit v1.2.3