mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-24 23:13:47 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -120,9 +120,9 @@ void ServerApi06::CloseChangeSet(uint64_t changesetId) const
|
||||
uint64_t ServerApi06::CreateNote(ms::LatLon const & ll, std::string const & message) const
|
||||
{
|
||||
CHECK(!message.empty(), ("Note content should not be empty."));
|
||||
std::string const params = "?lat=" + strings::to_string_dac(ll.m_lat, 7) +
|
||||
"&lon=" + strings::to_string_dac(ll.m_lon, 7) +
|
||||
"&text=" + url::UrlEncode(message + " #CoMaps " + OMIM_OS_NAME + " " + GetPlatform().Version());
|
||||
std::string const params =
|
||||
"?lat=" + strings::to_string_dac(ll.m_lat, 7) + "&lon=" + strings::to_string_dac(ll.m_lon, 7) +
|
||||
"&text=" + url::UrlEncode(message + " #CoMaps " + OMIM_OS_NAME + " " + GetPlatform().Version());
|
||||
OsmOAuth::Response const response = m_auth.Request("/notes" + params, "POST");
|
||||
if (response.first != OsmOAuth::HTTP::OK)
|
||||
MYTHROW(ErrorAddingNote, ("Could not post a new note:", response));
|
||||
|
||||
Reference in New Issue
Block a user