Fixed a mistake where CContainerBase::marshallToDbus was using the wrong version of QDBusArgument::beginArray,

leading to the qdbuscpp2xml error "read from a write-only object" reported by Klaus.
This commit is contained in:
Roland Winklmeier
2014-01-11 16:56:52 +00:00
committed by Mathew Sutcliffe
parent 405ad7165e
commit 05c121b214

View File

@@ -154,7 +154,7 @@ namespace BlackMisc
virtual void marshallToDbus(QDBusArgument &argument) const
{
argument.beginArray();
argument.beginArray(qMetaTypeId<T>());
std::for_each(derived().begin(), derived().end(), [ & ](const T &value) { argument << value; });
argument.endArray();
}