More cleanup. Fix some warnings.

This commit is contained in:
Henrik Rydgård committed 2025-10-31 22:37:28 +01:00
1 parent 14ddad5ce3
commit 4ec26d5002
5 files changed
+28 -12

No files matched your search

+1 -4
View File
@@ -308,13 +308,10 @@ void Section::Set(std::string_view key, const std::vector<std::string> &newValue
Set(key, temp.c_str());
}
bool Section::Get(std::string_view key, std::vector<std::string> *values, const std::vector<std::string_view> *defaultValues) const {
bool Section::Get(std::string_view key, std::vector<std::string> *values) const {
std::string temp;
bool retval = Get(key, &temp);
if (!retval) {
if (defaultValues) {
CopyStrings(values, *defaultValues);
}
return false;
}
SplitString(temp, ',', *values, true);