From 8d8e7ec1f200a53ac835435aeaabac4d6a40f3a6 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Thu, 18 Dec 2014 17:12:10 +0100 Subject: Refactoring: Rename roomNr -> roomCount. Test-Information: Builds on OS X 10.9.5. Change-Id: I53498fabfabb969c907bf95ff89e19952572115e 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 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(); } } -- cgit v0.10.2-6-g49f6