remove redundant .c_str()

u8s2qs(takes std::string)
dbd is same type of tl which is vector<string>
This commit is contained in:
shenleban tongying 2022-08-23 05:56:14 -04:00
parent 5608a8f79c
commit 3e3711da51

View File

@ -416,7 +416,7 @@ void rwSettings(bool writing)
} else { } else {
vector<string> tl = g_dynconf->getStringEntries<vector>(asbdSk); vector<string> tl = g_dynconf->getStringEntries<vector>(asbdSk);
for (const auto& dbd: tl) { for (const auto& dbd: tl) {
prefs.asearchSubdirHist.push_back(u8s2qs(dbd.c_str())); prefs.asearchSubdirHist.push_back(u8s2qs(dbd));
} }
} }
if (!writing) { if (!writing) {