From: Arvin Schnell Date: Tue, 28 Mar 2023 06:36:53 +0000 (+0200) Subject: - fixed indentation X-Git-Tag: v0.10.5~29^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8be277cc085dca1f6b9cd4c7b9768bd189e248f;p=thirdparty%2Fsnapper.git - fixed indentation --- diff --git a/dbus/DBusMessage.h b/dbus/DBusMessage.h index 4d5ce374..ba105652 100644 --- a/dbus/DBusMessage.h +++ b/dbus/DBusMessage.h @@ -192,8 +192,8 @@ namespace DBus public: - Unmarshaller(Message& msg); - ~Unmarshaller(); + Unmarshaller(Message& msg); + ~Unmarshaller(); void open_recurse(); void close_recurse(); @@ -208,8 +208,8 @@ namespace DBus public: - Marshaller(Message& msg); - ~Marshaller(); + Marshaller(Message& msg); + ~Marshaller(); void open_struct(); void close_struct(); @@ -252,80 +252,80 @@ namespace DBus template Unmarshaller& operator>>(Unmarshaller& unmarshaller, vector& data) { - if (unmarshaller.get_type() != DBUS_TYPE_ARRAY) + if (unmarshaller.get_type() != DBUS_TYPE_ARRAY) throw MarshallingException(); - unmarshaller.open_recurse(); + unmarshaller.open_recurse(); - while (unmarshaller.get_type() != DBUS_TYPE_INVALID) + while (unmarshaller.get_type() != DBUS_TYPE_INVALID) { - if (unmarshaller.get_signature() != TypeInfo::signature) + if (unmarshaller.get_signature() != TypeInfo::signature) throw MarshallingException(); Type tmp; - unmarshaller >> tmp; + unmarshaller >> tmp; data.push_back(tmp); } - unmarshaller.close_recurse(); + unmarshaller.close_recurse(); - return unmarshaller; + return unmarshaller; } template Marshaller& operator<<(Marshaller& marshaller, const vector& data) { - marshaller.open_array(TypeInfo::signature); + marshaller.open_array(TypeInfo::signature); for (typename vector::const_iterator it = data.begin(); it != data.end(); ++it) { - marshaller << *it; + marshaller << *it; } - marshaller.close_array(); + marshaller.close_array(); - return marshaller; + return marshaller; } template Unmarshaller& operator>>(Unmarshaller& unmarshaller, list& data) { - if (unmarshaller.get_type() != DBUS_TYPE_ARRAY) + if (unmarshaller.get_type() != DBUS_TYPE_ARRAY) throw MarshallingException(); - unmarshaller.open_recurse(); + unmarshaller.open_recurse(); - while (unmarshaller.get_type() != DBUS_TYPE_INVALID) + while (unmarshaller.get_type() != DBUS_TYPE_INVALID) { - if (unmarshaller.get_signature() != TypeInfo::signature) + if (unmarshaller.get_signature() != TypeInfo::signature) throw MarshallingException(); Type tmp; - unmarshaller >> tmp; + unmarshaller >> tmp; data.push_back(tmp); } - unmarshaller.close_recurse(); + unmarshaller.close_recurse(); - return unmarshaller; + return unmarshaller; } template Marshaller& operator<<(Marshaller& marshaller, const list& data) { - marshaller.open_array(TypeInfo::signature); + marshaller.open_array(TypeInfo::signature); for (typename list::const_iterator it = data.begin(); it != data.end(); ++it) { - marshaller << *it; + marshaller << *it; } - marshaller.close_array(); + marshaller.close_array(); - return marshaller; + return marshaller; } }