diff options
| author | Linus Jahn <lnj@kaidan.im> | 2020-07-11 22:36:38 +0200 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-07-12 21:32:41 +0200 |
| commit | d1978692b8cde1e5d785e31e4d443ae7a52f143f (patch) | |
| tree | 2907a7900ecd3402ba8acfd4707ae69f71b49454 /src/base/QXmppStanza.h | |
| parent | 317c87325b709fc6b5a1b363120a57299092a80f (diff) | |
| download | qxmpp-d1978692b8cde1e5d785e31e4d443ae7a52f143f.tar.gz | |
QXmppStanza::Error: Use std::optional<> internally
This makes the variables for the error type and condition an
std::optional<> as this makes the meaning clearer than hidden -1 values
created by dubious casts.
For now, the API is not changed, because we can't replace the getter
easily. We could do something like type() and optionalType().
Diffstat (limited to 'src/base/QXmppStanza.h')
| -rw-r--r-- | src/base/QXmppStanza.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/base/QXmppStanza.h b/src/base/QXmppStanza.h index caf6d6df..03a0680b 100644 --- a/src/base/QXmppStanza.h +++ b/src/base/QXmppStanza.h @@ -190,12 +190,6 @@ public: /// \endcond private: - QString getConditionStr() const; - void setConditionFromStr(const QString &cond); - - QString getTypeStr() const; - void setTypeFromStr(const QString &type); - QSharedDataPointer<QXmppStanzaErrorPrivate> d; }; |
