summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2014-12-18 16:12:10 (GMT)
committerTobias Markmann <tm@ayena.de>2014-12-18 16:12:10 (GMT)
commit8d8e7ec1f200a53ac835435aeaabac4d6a40f3a6 (patch)
tree2db8fee15479126faa88bb33d9421d67821ea39e /Swiften/Examples
parent60b15814caa60b555d75848e921df2525c51d766 (diff)
downloadswift-8d8e7ec1f200a53ac835435aeaabac4d6a40f3a6.zip
swift-8d8e7ec1f200a53ac835435aeaabac4d6a40f3a6.tar.bz2
Refactoring: Rename roomNr -> roomCount.
Test-Information: Builds on OS X 10.9.5. Change-Id: I53498fabfabb969c907bf95ff89e19952572115e
Diffstat (limited to 'Swiften/Examples')
-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();
}
}