aboutsummaryrefslogtreecommitdiffstats
path: root/pulse.h
diff options
context:
space:
mode:
Diffstat (limited to 'pulse.h')
-rw-r--r--pulse.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/pulse.h b/pulse.h
index 32dfe25..a825d62 100644
--- a/pulse.h
+++ b/pulse.h
@@ -112,15 +112,16 @@ class Card {
struct ServerInfo {
string sink;
string source;
+ string empty = "";
- const string GetDefault(enum DeviceType type) {
+ const string& GetDefault(enum DeviceType type) {
switch (type) {
case DEVTYPE_SINK:
return sink;
case DEVTYPE_SOURCE:
return source;
default:
- return "";
+ return empty;
}
}
};