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/SndObj.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/SndObj.cpp')
-rw-r--r-- | src/sndobj/SndObj.cpp | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/src/sndobj/SndObj.cpp b/src/sndobj/SndObj.cpp index a111426..e5b557c 100644 --- a/src/sndobj/SndObj.cpp +++ b/src/sndobj/SndObj.cpp @@ -201,36 +201,7 @@ SndObj::operator<<(SndIO& in){ for(int n=0;n<m_vecsize;n++) m_output[n]=in.Output(n,1); } - -char* SndObj::ErrorMessage(){ - - char* message; - - switch(m_error){ - - case 0: - message = "No error\n"; - break; - - case 1: - message = "Failed to allocate vector memory\n"; - break; - - case 3: - message = "DoProcess() failed: no input object \n"; - break; - - default: - message = "Undefined error\n"; - break; - - } - - return message; - -} - -const char* SndObj::CErrorMessage(){ +const char* SndObj::ErrorMessage(){ switch(m_error){ |