From 21034fdfa70503e25268a8e5dabe5156c5454d2e Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 13 Dec 2020 16:43:43 +0100 Subject: Pass random_exlude_pattern as reference --- src/mpdpp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mpdpp.h') 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); -- cgit v1.2.3