From c0a88382ccad45cfd734dfd82cf5101161242934 Mon Sep 17 00:00:00 2001 From: dan-du-car Date: Mon, 12 Aug 2024 16:22:08 +0000 Subject: [PATCH] add comment --- src/tmx/TmxApi/tmx/messages/message.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tmx/TmxApi/tmx/messages/message.hpp b/src/tmx/TmxApi/tmx/messages/message.hpp index a82950abc..3ac3960cf 100644 --- a/src/tmx/TmxApi/tmx/messages/message.hpp +++ b/src/tmx/TmxApi/tmx/messages/message.hpp @@ -429,7 +429,11 @@ class tmx_message { erase_object(objectName); this->as_tree().get().add_child(objectName, Element::to_tree(obj)); } - + /** + * @brief Erase a certain object from the tree given the object name. + * @param Name of the object + * @param Object An object to be erased from the tree + */ void erase_object(const std::string& objName) { this->as_tree().get().erase(objName);