From 27ed407566b88e0da5c5085e7c191a92772b8433 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Mon, 15 Aug 2016 20:19:30 +0200 Subject: [PATCH] restructuring Messafge constructor --- src/identity.cc | 4 ++-- src/identity.hh | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/identity.cc b/src/identity.cc index 790b53d..5f36b52 100644 --- a/src/identity.cc +++ b/src/identity.cc @@ -11,8 +11,8 @@ namespace pEp { namespace PythonAdapter { using namespace std; - Identity::Identity(string address, string fpr, string user_id, string - username, int comm_type, string lang) + Identity::Identity(string address, string username, string user_id, + string fpr, int comm_type, string lang) : _ident(new_identity(address.c_str(), fpr.c_str(), user_id.c_str(), username.c_str()), &::free_identity) { diff --git a/src/identity.hh b/src/identity.hh index 4ba60cd..00aecec 100644 --- a/src/identity.hh +++ b/src/identity.hh @@ -17,8 +17,9 @@ namespace pEp { shared_ptr< pEp_identity > _ident; public: - Identity(string address = "", string fpr = "", string user_id = "", - string username = "", int comm_type = 0, string lang = ""); + Identity(string address = "", string username = "", + string user_id = "", string fpr = "", int comm_type = 0, + string lang = ""); Identity(const Identity& second); Identity(pEp_identity *ident);