mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-26 16:47:40 +01:00
Fix device properties having a garbage name.
Bug was : xmlKey() wrongly return by value. Returning xmlKey().value() by reference = returning a local object by reference. value() was destroyed and referenced memory become garbage.
This commit is contained in:
parent
243f6d7b36
commit
541182fcd1
@ -61,7 +61,7 @@ class XmlAddKey : public XmlValueClass
|
|||||||
// m_key.strncpy(keyValue, keyValueLength);
|
// m_key.strncpy(keyValue, keyValueLength);
|
||||||
// }
|
// }
|
||||||
// XmlKeyClass& key() { return m_key; }
|
// XmlKeyClass& key() { return m_key; }
|
||||||
XmlKeyClass xmlKey() const { return m_key; }
|
const XmlKeyClass& xmlKey() const { return m_key; }
|
||||||
decltype(m_key.value()) key() const { return m_key.value(); }
|
decltype(m_key.value()) key() const { return m_key.value(); }
|
||||||
|
|
||||||
void setKey(const XmlKeyClass& aKey) {
|
void setKey(const XmlKeyClass& aKey) {
|
||||||
|
Loading…
Reference in New Issue
Block a user