mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
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:
committed by
Mathew Sutcliffe
parent
405ad7165e
commit
05c121b214
@@ -154,7 +154,7 @@ namespace BlackMisc
|
|||||||
|
|
||||||
virtual void marshallToDbus(QDBusArgument &argument) const
|
virtual void marshallToDbus(QDBusArgument &argument) const
|
||||||
{
|
{
|
||||||
argument.beginArray();
|
argument.beginArray(qMetaTypeId<T>());
|
||||||
std::for_each(derived().begin(), derived().end(), [ & ](const T &value) { argument << value; });
|
std::for_each(derived().begin(), derived().end(), [ & ](const T &value) { argument << value; });
|
||||||
argument.endArray();
|
argument.endArray();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user