[editor] remove error messages from CS comment and enforce OSM 255 char length limit (#919)

Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-10-26 20:16:56 +01:00
committed by map-per
parent bab74782f8
commit 310287e918
4 changed files with 49 additions and 19 deletions

View File

@@ -52,8 +52,8 @@ public:
/// Add a tag to the changeset
void AddChangesetTag(std::string key, std::string value);
/// Allows to see exception details in OSM changesets for easier debugging.
void SetErrorDescription(std::string const & error);
/// Add item to ';' separated list for a changeset key
void AddToChangesetKeyList(std::string key, std::string value);
private:
/// Unfortunately, pugi can't return xml_documents from methods.
@@ -65,11 +65,11 @@ private:
ServerApi06 m_api;
static constexpr uint64_t kInvalidChangesetId = 0;
uint64_t m_changesetId = kInvalidChangesetId;
static constexpr int kMaximumOsmChars = 255;
TypeCount m_modified_types;
TypeCount m_created_types;
TypeCount m_deleted_types;
std::string m_error;
static std::string TypeCountToString(TypeCount const & typeCount);
std::string GetDescription() const;
};