diff options
author | John Glover <j@johnglover.net> | 2012-06-30 18:48:33 +0100 |
---|---|---|
committer | John Glover <j@johnglover.net> | 2012-06-30 18:48:33 +0100 |
commit | 1ef9783c3faed6a18e8cc2fba34f48b50bedd08a (patch) | |
tree | ba0c26de48baa85614b417643dd71bcab8e941c4 /src/sndobj/SndIO.cpp | |
parent | 53d3a19792635869eac66115dbc006c3a0f23a58 (diff) | |
download | simpl-1ef9783c3faed6a18e8cc2fba34f48b50bedd08a.tar.gz simpl-1ef9783c3faed6a18e8cc2fba34f48b50bedd08a.tar.bz2 simpl-1ef9783c3faed6a18e8cc2fba34f48b50bedd08a.zip |
[sndobj] Make ErrorMessage method const char*
Diffstat (limited to 'src/sndobj/SndIO.cpp')
-rw-r--r-- | src/sndobj/SndIO.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
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; - - } - - +} |