diff options
Diffstat (limited to 'Swiften/Elements/IQ.cpp')
-rw-r--r-- | Swiften/Elements/IQ.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/Elements/IQ.cpp b/Swiften/Elements/IQ.cpp index 51f4745..3f47182 100644 --- a/Swiften/Elements/IQ.cpp +++ b/Swiften/Elements/IQ.cpp @@ -5,9 +5,9 @@ namespace Swift { boost::shared_ptr<IQ> IQ::createRequest( Type type, const JID& to, const String& id, boost::shared_ptr<Payload> payload) { boost::shared_ptr<IQ> iq(new IQ(type)); - if (to.isValid()) { - iq->setTo(to); - } + if (to.isValid()) { + iq->setTo(to); + } iq->setID(id); if (payload) { iq->addPayload(payload); |