[core] Support geo-navigation URL

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-09-22 14:21:19 +00:00
committed by Yannik Bloscheck
parent c21afb27bd
commit 74122e2fae
9 changed files with 185 additions and 10 deletions

View File

@@ -130,11 +130,13 @@ void QuerySaver::Deserialize(string const & data)
{
Length localeLength = ReadPrimitiveFromSource<Length>(reader);
vector<char> locale(localeLength);
reader.Read(&locale[0], localeLength);
Length stringLength = ReadPrimitiveFromSource<Length>(reader);
vector<char> str(stringLength);
reader.Read(&str[0], stringLength);
m_topQueries.emplace_back(make_pair(string(&locale[0], localeLength), string(&str[0], stringLength)));
if (locale.size() > 0) {
reader.Read(&locale[0], localeLength);
Length stringLength = ReadPrimitiveFromSource<Length>(reader);
vector<char> str(stringLength);
reader.Read(&str[0], stringLength);
m_topQueries.emplace_back(make_pair(string(&locale[0], localeLength), string(&str[0], stringLength)));
}
}
}