Warn when shared_object_ptr misused

This commit is contained in:
Eduardo Bart
2013-02-28 12:19:42 -03:00
parent e528fcc8f8
commit 69e762385e
2 changed files with 6 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ public:
bool hasChildAt(const std::string& childTag) { return !!get(childTag); }
bool hasChildAtIndex(int childIndex) { return !!getIndex(childIndex); }
void setTag(std::string tag) { m_tag = tag; }
void setTag(const std::string& tag) { m_tag = tag; }
void setValue(const std::string& value) { m_value = value; }
void setNull(bool null) { m_null = null; }
void setUnique(bool unique) { m_unique = unique; }