summaryrefslogtreecommitdiffstats
path: root/src/dabInputZmq.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-14 18:49:04 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-14 18:49:04 +0100
commitc1da0ac7cca49e0b96dbb359ee48000cb04df15b (patch)
treec6041007cfa28ea80e5dc5df2f1944faf714ab32 /src/dabInputZmq.cpp
parentd6d8d67b1c921d8fca7257291c15c07bdea8d14a (diff)
downloaddabmux-c1da0ac7cca49e0b96dbb359ee48000cb04df15b.tar.gz
dabmux-c1da0ac7cca49e0b96dbb359ee48000cb04df15b.tar.bz2
dabmux-c1da0ac7cca49e0b96dbb359ee48000cb04df15b.zip
improve RC constness
Diffstat (limited to 'src/dabInputZmq.cpp')
-rw-r--r--src/dabInputZmq.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dabInputZmq.cpp b/src/dabInputZmq.cpp
index 387c8cc..de0a4fe 100644
--- a/src/dabInputZmq.cpp
+++ b/src/dabInputZmq.cpp
@@ -311,7 +311,8 @@ int DabInputZmqAAC::readFromSocket(int framesize)
/********* REMOTE CONTROL ***********/
-void DabInputZmqBase::set_parameter(string parameter, string value)
+void DabInputZmqBase::set_parameter(const string& parameter,
+ const string& value)
{
stringstream ss(value);
ss.exceptions ( stringstream::failbit | stringstream::badbit );
@@ -349,7 +350,7 @@ void DabInputZmqBase::set_parameter(string parameter, string value)
}
}
-string DabInputZmqBase::get_parameter(string parameter)
+const string DabInputZmqBase::get_parameter(const string& parameter) const
{
stringstream ss;
if (parameter == "buffer") {