comparison data/fileio/AudioFileReader.cpp @ 290:92e8dbde73cd

* Revert revision 713. We do like QStrings after all.
author Chris Cannam
date Fri, 24 Aug 2007 11:41:48 +0000
parents 20028c634494
children 1d656dcda8ef
comparison
equal deleted inserted replaced
289:3020904de772 290:92e8dbde73cd
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #include "AudioFileReader.h" 16 #include "AudioFileReader.h"
17 17
18 void
19 AudioFileReader::setError(std::string text, std::string arg)
20 {
21 if (arg == "") m_error = text;
22 else m_error = text + ": " + arg;
23 }
24
25 void
26 AudioFileReader::setError(std::string text, int arg)
27 {
28 char *buf = new char(text.length() + 100);
29 sprintf(buf, "%s: code %d", text.c_str(), arg);
30 m_error = buf;
31 delete[] buf;
32 }
33