summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/IQ.cpp6
-rw-r--r--Swiften/Elements/RosterPayload.cpp4
2 files changed, 5 insertions, 5 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);
diff --git a/Swiften/Elements/RosterPayload.cpp b/Swiften/Elements/RosterPayload.cpp
index 8e2fd87..1aecde9 100644
--- a/Swiften/Elements/RosterPayload.cpp
+++ b/Swiften/Elements/RosterPayload.cpp
@@ -5,9 +5,9 @@ namespace Swift {
boost::optional<RosterItemPayload> RosterPayload::getItem(const JID& jid) const {
foreach(const RosterItemPayload& item, items_) {
- // FIXME: MSVC rejects this. Find out why.
+ // FIXME: MSVC rejects this. Find out why.
//if (item.getJID() == jid) {
- if (item.getJID().equals(jid, JID::WithResource)) {
+ if (item.getJID().equals(jid, JID::WithResource)) {
return boost::optional<RosterItemPayload>(item);
}
}