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/HarmTable.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/sndobj/HarmTable.cpp') diff --git a/src/sndobj/HarmTable.cpp b/src/sndobj/HarmTable.cpp index 28fcd09..a858efa 100644 --- a/src/sndobj/HarmTable.cpp +++ b/src/sndobj/HarmTable.cpp @@ -129,10 +129,10 @@ HarmTable :: MakeTable(){ ///////////////// ERROR HANDLING /////////////////////////////// -char* +const char* HarmTable::ErrorMessage(){ - char* message; + const char* message; switch(m_error){ @@ -150,11 +150,4 @@ HarmTable::ErrorMessage(){ } return message; - } - - - - - - -- cgit v1.2.3