summaryrefslogtreecommitdiffstats
path: root/src/dabInput.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-30 11:59:36 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-30 11:59:36 +0100
commitd0d31db28c81559e0c4c0f93fafc9b6e762eb817 (patch)
tree6f559601859c3547d427a9f5017e7d5a19c74763 /src/dabInput.h
parentf21352094c0949b643721ee5387fefae0cdab507 (diff)
downloaddabmux-d0d31db28c81559e0c4c0f93fafc9b6e762eb817.tar.gz
dabmux-d0d31db28c81559e0c4c0f93fafc9b6e762eb817.tar.bz2
dabmux-d0d31db28c81559e0c4c0f93fafc9b6e762eb817.zip
Make DabInputBase::open take a reference
Diffstat (limited to 'src/dabInput.h')
-rw-r--r--src/dabInput.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dabInput.h b/src/dabInput.h
index f1b4348..d5444cd 100644
--- a/src/dabInput.h
+++ b/src/dabInput.h
@@ -51,7 +51,7 @@ struct dabInputOperations {
/* New input object base */
class DabInputBase {
public:
- virtual int open(const std::string name) = 0;
+ virtual int open(const std::string& name) = 0;
virtual int readFrame(void* buffer, int size) = 0;
virtual int setBitrate(int bitrate) = 0;
virtual int close() = 0;
@@ -71,7 +71,7 @@ class DabInputCompatible : public DabInputBase {
virtual ~DabInputCompatible()
{ m_ops.clean(&args); }
- virtual int open(const std::string name)
+ virtual int open(const std::string& name)
{ return m_ops.open(args, name.c_str()); }
virtual int setbuf(int size)