diff options
-rw-r--r-- | include/cru/ui/helper/ShortcutHub.hpp | 2 | ||||
-rw-r--r-- | src/xml/XmlNode.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/ui/helper/ShortcutHub.hpp b/include/cru/ui/helper/ShortcutHub.hpp index def024a8..be5347ef 100644 --- a/include/cru/ui/helper/ShortcutHub.hpp +++ b/include/cru/ui/helper/ShortcutHub.hpp @@ -131,7 +131,7 @@ class ShortcutHub : public Object { private: std::unordered_map<ShortcutKeyBind, std::vector<ShortcutInfo>> map_; - const std::vector<ShortcutInfo> empty_list_; + std::vector<ShortcutInfo> empty_list_; int current_id_ = 1; diff --git a/src/xml/XmlNode.cpp b/src/xml/XmlNode.cpp index 51a861fa..5c6294c8 100644 --- a/src/xml/XmlNode.cpp +++ b/src/xml/XmlNode.cpp @@ -27,7 +27,7 @@ void XmlElementNode::AddAttribute(String key, String value) { } void XmlElementNode::AddChild(XmlNode* child) { - assert(child->GetParent() == nullptr); + Expects(child->GetParent() == nullptr); children_.push_back(child); child->parent_ = this; } |