summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Swiften/Examples/MUCListAndJoin/MUCListAndJoin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Examples/MUCListAndJoin/MUCListAndJoin.cpp b/Swiften/Examples/MUCListAndJoin/MUCListAndJoin.cpp
index e7c7f1f..2e2503b 100644
--- a/Swiften/Examples/MUCListAndJoin/MUCListAndJoin.cpp
+++ b/Swiften/Examples/MUCListAndJoin/MUCListAndJoin.cpp
@@ -45,12 +45,12 @@ static void handleRoomsItemsResponse(boost::shared_ptr<DiscoItems> items, ErrorP
return;
}
- int roomNr = 0;
+ int roomCount = 0;
cout << "List of rooms at " << mucJID.toString() << endl;
foreach (DiscoItems::Item item, items->getItems()) {
- roomNr++;
- cout << "\t" << roomNr << ". " << item.getJID().getNode() << " - " << item.getName() << std::endl;
- if (roomNr == 1) {
+ roomCount++;
+ cout << "\t" << roomCount << ". " << item.getJID().getNode() << " - " << item.getName() << std::endl;
+ if (roomCount == 1) {
roomJID = item.getJID();
}
}