Change return value of listKeys
Not every subclass stores keys in a set, so returning a reference might
not always be possible.
Change-Id: If19f81d9ee9ddb5e2ce0133af1a39115f62676a3
diff --git a/src/static_schema.cpp b/src/static_schema.cpp
index 86dc6fa..1778c68 100644
--- a/src/static_schema.cpp
+++ b/src/static_schema.cpp
@@ -66,7 +66,7 @@
return list.m_keys.find(key) != list.m_keys.end();
}
-const std::set<std::string>& StaticSchema::listKeys(const path_& location, const ModuleNodePair& node) const
+const std::set<std::string> StaticSchema::listKeys(const path_& location, const ModuleNodePair& node) const
{
std::string locationString = pathToAbsoluteSchemaString(location);
assert(isList(location, node));