diff options
| author | Tobias Markmann <tm@ayena.de> | 2015-10-29 16:15:20 (GMT) |
|---|---|---|
| committer | Kevin Smith <kevin.smith@isode.com> | 2015-10-30 12:50:06 (GMT) |
| commit | efb98f5c83fc5e0fb598a88e04c8bf6f642b5e2a (patch) | |
| tree | 0f520a39713370f711c82610c089e966beb70412 /Swift/Controllers/Roster/ItemOperations/SetPresence.h | |
| parent | 8719b25e0dda4c8dae30c86ff88315e0e7fa9e1c (diff) | |
| download | swift-efb98f5c83fc5e0fb598a88e04c8bf6f642b5e2a.zip swift-efb98f5c83fc5e0fb598a88e04c8bf6f642b5e2a.tar.bz2 | |
Fix code in response to unused macro and private field warnings
Test-Information:
Build and tests pass successfully on OS X 10.10.5.
Change-Id: I614586660796f9ef043156d09d998d39934a6eca
Diffstat (limited to 'Swift/Controllers/Roster/ItemOperations/SetPresence.h')
| -rw-r--r-- | Swift/Controllers/Roster/ItemOperations/SetPresence.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Swift/Controllers/Roster/ItemOperations/SetPresence.h b/Swift/Controllers/Roster/ItemOperations/SetPresence.h index 0b54237..2b5bbbe 100644 --- a/Swift/Controllers/Roster/ItemOperations/SetPresence.h +++ b/Swift/Controllers/Roster/ItemOperations/SetPresence.h | |||
| @@ -1,18 +1,18 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <Swiften/Elements/Presence.h> | 9 | #include <Swiften/Elements/Presence.h> |
| 10 | #include <Swiften/JID/JID.h> | 10 | #include <Swiften/JID/JID.h> |
| 11 | 11 | ||
| 12 | #include <Swift/Controllers/Roster/ItemOperations/RosterItemOperation.h> | ||
| 13 | #include <Swift/Controllers/Roster/ContactRosterItem.h> | 12 | #include <Swift/Controllers/Roster/ContactRosterItem.h> |
| 13 | #include <Swift/Controllers/Roster/ItemOperations/RosterItemOperation.h> | ||
| 14 | 14 | ||
| 15 | namespace Swift { | 15 | namespace Swift { |
| 16 | 16 | ||
| 17 | class RosterItem; | 17 | class RosterItem; |
| 18 | 18 | ||
| @@ -22,11 +22,11 @@ class SetPresence : public RosterItemOperation { | |||
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | virtual void operator() (RosterItem* item) const { | 24 | virtual void operator() (RosterItem* item) const { |
| 25 | ContactRosterItem* contact = dynamic_cast<ContactRosterItem*>(item); | 25 | ContactRosterItem* contact = dynamic_cast<ContactRosterItem*>(item); |
| 26 | if (contact && contact->getJID().equals(presence_->getFrom(), compareType_)) { | 26 | if (contact && contact->getJID().equals(presence_->getFrom(), compareType_)) { |
| 27 | contact->applyPresence(presence_->getFrom().getResource(), presence_); | 27 | contact->applyPresence(presence_); |
| 28 | } | 28 | } |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | private: | 31 | private: |
| 32 | Presence::ref presence_; | 32 | Presence::ref presence_; |
Swift