summaryrefslogtreecommitdiff
path: root/src/mpdpp.h
diff options
context:
space:
mode:
authorAndrzej Rybczak <andrzej@rybczak.net>2020-12-13 16:43:43 +0100
committerAndrzej Rybczak <andrzej@rybczak.net>2020-12-13 16:43:43 +0100
commit21034fdfa70503e25268a8e5dabe5156c5454d2e (patch)
treea101491b688621ddd86b79c035988e3b4c78dcac /src/mpdpp.h
parent8575a9132cbb411a717204fb4f0cc3b954e44e31 (diff)
Pass random_exlude_pattern as reference
Diffstat (limited to 'src/mpdpp.h')
-rw-r--r--src/mpdpp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mpdpp.h b/src/mpdpp.h
index abd3666c..8b2138bf 100644
--- a/src/mpdpp.h
+++ b/src/mpdpp.h
@@ -547,7 +547,7 @@ struct Connection
int AddSong(const std::string &, int = -1); // returns id of added song
int AddSong(const Song &, int = -1); // returns id of added song
bool AddRandomTag(mpd_tag_type, size_t, std::mt19937 &rng);
- bool AddRandomSongs(size_t number, std::string random_exclude_pattern, std::mt19937 &rng);
+ bool AddRandomSongs(size_t number, const std::string &random_exclude_pattern, std::mt19937 &rng);
void Add(const std::string &path);
void Delete(unsigned int pos);
void PlaylistDelete(const std::string &playlist, unsigned int pos);