aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-09 17:41:27 +0000
committercrupest <crupest@outlook.com>2022-01-09 17:41:27 +0000
commitab108a16415927d3f1eb03a7d0ac63c50a55ddbe (patch)
treeafe6182d55464f3d251c11938978632de143375b
parent13256b52f55922c52c3d42b0088cfef530907e1d (diff)
downloadcru-ab108a16415927d3f1eb03a7d0ac63c50a55ddbe.tar.gz
cru-ab108a16415927d3f1eb03a7d0ac63c50a55ddbe.tar.bz2
cru-ab108a16415927d3f1eb03a7d0ac63c50a55ddbe.zip
...
-rw-r--r--include/cru/ui/helper/ShortcutHub.hpp2
-rw-r--r--src/xml/XmlNode.cpp2
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;
}