diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-12 18:38:33 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-12 18:38:33 +0800 |
commit | b21dce3485058b8764500f1efc9f46bea5f7c890 (patch) | |
tree | 805d79c0104017bc41fedb53f4291bb5b1504705 | |
parent | 6fccc8247534aba6a378ee02b7eeef66018ded51 (diff) |
Revert "Interface for initialising Member with C data"
This reverts commit 6fccc8247534aba6a378ee02b7eeef66018ded51.
-rw-r--r-- | interchange/member.hxx | 3 | ||||
-rw-r--r-- | member.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/interchange/member.hxx b/interchange/member.hxx index b40dc6d..4031f7e 100644 --- a/interchange/member.hxx +++ b/interchange/member.hxx @@ -32,8 +32,7 @@ namespace QInterchange { Q_PROPERTY(QString email READ email WRITE setEmail NOTIFY emailChanged) public: - explicit Member(interchange_member* data = nullptr, - QObject* parent = nullptr); + explicit Member(QObject* parent = nullptr); ~Member() {} QString const& userName() const { return m_userName; } @@ -7,7 +7,7 @@ namespace QInterchange { static Member* member; static char *unCopy, *pwCopy, *vCopy, *fpCopy; - Member::Member(interchange_member* data, QObject* parent) : + Member::Member(QObject* parent) : QObject{parent}, m_userName{""}, m_userNick{""}, @@ -30,7 +30,6 @@ namespace QInterchange { m_email{""}, m_data{nullptr} { - if (data) setData(data); member = this; } |