diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-11-21 23:03:52 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-11-21 23:03:52 (GMT) |
commit | 38fbde49ec4ff77708237d768581a47e6dd7d553 (patch) | |
tree | f1f98389faa7cc5d0312c104a682b5f29f0dd182 /Swift | |
parent | 18dd39bff0426b6f2cd77395a61faf8fa3108a83 (diff) | |
download | swift-contrib-38fbde49ec4ff77708237d768581a47e6dd7d553.zip swift-contrib-38fbde49ec4ff77708237d768581a47e6dd7d553.tar.bz2 |
Removing compiler warnings.
Swiften and Swift now build with no compiler warnings for me on Snow Leopard.
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/Controllers/RosterController.cpp | 2 | ||||
-rw-r--r-- | Swift/Controllers/SoundEventController.cpp | 2 | ||||
-rw-r--r-- | Swift/QtUI/EventViewer/EventModel.cpp | 4 | ||||
-rw-r--r-- | Swift/QtUI/QtChatTabs.cpp | 4 | ||||
-rw-r--r-- | Swift/QtUI/QtJoinMUCDialog.cpp | 2 | ||||
-rw-r--r-- | Swift/QtUI/QtLoginWindow.cpp | 4 |
6 files changed, 9 insertions, 9 deletions
diff --git a/Swift/Controllers/RosterController.cpp b/Swift/Controllers/RosterController.cpp index 063d2a7..807fc19 100644 --- a/Swift/Controllers/RosterController.cpp +++ b/Swift/Controllers/RosterController.cpp @@ -137,7 +137,7 @@ void RosterController::handleIncomingPresence(boost::shared_ptr<Presence> presen roster_->applyOnItems(SetPresence(presence)); } -void RosterController::handleAvatarChanged(const JID& jid, const String& hash) { +void RosterController::handleAvatarChanged(const JID& jid, const String&) { String path = avatarManager_->getAvatarPath(jid).string(); roster_->applyOnItems(SetAvatar(jid, path)); if (jid.equals(myJID_, JID::WithoutResource)) { diff --git a/Swift/Controllers/SoundEventController.cpp b/Swift/Controllers/SoundEventController.cpp index 133becf..d466842 100644 --- a/Swift/Controllers/SoundEventController.cpp +++ b/Swift/Controllers/SoundEventController.cpp @@ -14,7 +14,7 @@ SoundEventController::SoundEventController(EventController* eventController, Sou eventController_->onEventQueueEventAdded.connect(boost::bind(&SoundEventController::handleEventQueueEventAdded, this, _1)); } -void SoundEventController::handleEventQueueEventAdded(boost::shared_ptr<MessageEvent> event) { +void SoundEventController::handleEventQueueEventAdded(boost::shared_ptr<MessageEvent>) { if (playSounds_) soundPlayer_->playSound(SoundPlayer::MessageReceived); } diff --git a/Swift/QtUI/EventViewer/EventModel.cpp b/Swift/QtUI/EventViewer/EventModel.cpp index a2343ed..a3d5406 100644 --- a/Swift/QtUI/EventViewer/EventModel.cpp +++ b/Swift/QtUI/EventViewer/EventModel.cpp @@ -9,11 +9,11 @@ EventModel::~EventModel() { } -QVariant EventModel::data(const QModelIndex& index, int role) const { +QVariant EventModel::data(const QModelIndex& /*index*/, int /*role*/) const { return QVariant(); } -int EventModel::rowCount(const QModelIndex& parent) const { +int EventModel::rowCount(const QModelIndex& /*parent*/) const { return 0; } diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp index 2dbeed7..e30478c 100644 --- a/Swift/QtUI/QtChatTabs.cpp +++ b/Swift/QtUI/QtChatTabs.cpp @@ -102,11 +102,11 @@ void QtChatTabs::handleTabTitleUpdated() { } } -void QtChatTabs::resizeEvent(QResizeEvent* event) { +void QtChatTabs::resizeEvent(QResizeEvent*) { emit geometryChanged(); } -void QtChatTabs::moveEvent(QMoveEvent* event) { +void QtChatTabs::moveEvent(QMoveEvent*) { emit geometryChanged(); } diff --git a/Swift/QtUI/QtJoinMUCDialog.cpp b/Swift/QtUI/QtJoinMUCDialog.cpp index b6f5814..77879ee 100644 --- a/Swift/QtUI/QtJoinMUCDialog.cpp +++ b/Swift/QtUI/QtJoinMUCDialog.cpp @@ -3,7 +3,7 @@ namespace Swift { -QtJoinMUCDialog::QtJoinMUCDialog(const QString& nick, const QString& muc, QWidget* parent) : QDialog(parent) { +QtJoinMUCDialog::QtJoinMUCDialog(const QString&, const QString&, QWidget* parent) : QDialog(parent) { setupUi(this); errorLabel_->hide(); setAttribute(Qt::WA_DeleteOnClose, true); diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp index 4daa658..6466692 100644 --- a/Swift/QtUI/QtLoginWindow.cpp +++ b/Swift/QtUI/QtLoginWindow.cpp @@ -251,11 +251,11 @@ void QtLoginWindow::bringToFront() { } } -void QtLoginWindow::resizeEvent(QResizeEvent* event) { +void QtLoginWindow::resizeEvent(QResizeEvent*) { emit geometryChanged(); } -void QtLoginWindow::moveEvent(QMoveEvent* event) { +void QtLoginWindow::moveEvent(QMoveEvent*) { emit geometryChanged(); } |