summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-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++;