summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-10-22 15:55:07 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-10-22 15:55:07 +0200
commite5332d6814e8f5ccb1e0d96b9a3e909e210a670d (patch)
tree57b28275d294af9a46de335e038a5f334549c573
parent1b4ae873729696d9338a1ec36496e94b8139a5a7 (diff)
Fixed conversion of int to string.
-rw-r--r--plugingui/plugingui.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugingui/plugingui.cc b/plugingui/plugingui.cc
index 19f6dca..c49d2fd 100644
--- a/plugingui/plugingui.cc
+++ b/plugingui/plugingui.cc
@@ -250,8 +250,11 @@ void PluginGUI::handleMessage(Message *msg)
channels_it++) {
std::string name = channels_it->first;
std::string microphone = channels_it->second;
- std::string count_str;
- count_str << count;
+
+ char buf[4];
+ sprintf(buf, "%d", count);
+ std::string count_str(buf);
+
metadatatext.append("\t"+ count_str + ". " + name + ": " + microphone + "\n");
//C++11 only: metadatatext.append("\t"+ std::to_string(count) + ". " + name + ": " + microphone + "\n");
count++;