Mercurial > hg > svcore
comparison data/fileio/AudioFileReader.cpp @ 285:20028c634494
* change some QStrings to std::strings etc
author | Chris Cannam |
---|---|
date | Thu, 09 Aug 2007 16:29:29 +0000 |
parents | b0f4555b625e |
children | 92e8dbde73cd |
comparison
equal
deleted
inserted
replaced
284:41d64b873d87 | 285:20028c634494 |
---|---|
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 |