db/upnp: append characters instead of single-character strings
This commit is contained in:
parent
87629dda81
commit
4943606f4a
@ -296,7 +296,7 @@ UpnpDatabase::SearchSongs(ContentDirectoryService &server,
|
|||||||
if (!cond.empty()) {
|
if (!cond.empty()) {
|
||||||
cond += " and ";
|
cond += " and ";
|
||||||
}
|
}
|
||||||
cond += "(";
|
cond += '(';
|
||||||
bool first(true);
|
bool first(true);
|
||||||
for (const auto& cap : searchcaps) {
|
for (const auto& cap : searchcaps) {
|
||||||
if (first)
|
if (first)
|
||||||
@ -311,7 +311,7 @@ UpnpDatabase::SearchSongs(ContentDirectoryService &server,
|
|||||||
}
|
}
|
||||||
dquote(cond, item.GetValue().c_str());
|
dquote(cond, item.GetValue().c_str());
|
||||||
}
|
}
|
||||||
cond += ")";
|
cond += ')';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user