diff options
author | Tobias Markmann <tm@ayena.de> | 2012-04-15 21:14:12 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-04-17 18:37:16 (GMT) |
commit | ab8d948710dae16449cbe25fe6f7c95bfa5cf773 (patch) | |
tree | bcdc34c00139ffc7c62ac3e92c701f3671fd02ce /Swift | |
parent | 7c683df1c9cde6ac8f1e4ffd04ab9a1b5a620348 (diff) | |
download | swift-contrib-ab8d948710dae16449cbe25fe6f7c95bfa5cf773.zip swift-contrib-ab8d948710dae16449cbe25fe6f7c95bfa5cf773.tar.bz2 |
Fixing some clang warnings.
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/Controllers/Chat/UserSearchController.cpp | 2 | ||||
-rw-r--r-- | Swift/QtUI/QtMUCConfigurationWindow.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Swift/Controllers/Chat/UserSearchController.cpp b/Swift/Controllers/Chat/UserSearchController.cpp index 47d57d4..839f4fa 100644 --- a/Swift/Controllers/Chat/UserSearchController.cpp +++ b/Swift/Controllers/Chat/UserSearchController.cpp @@ -42,19 +42,19 @@ UserSearchController::~UserSearchController() { } vcardManager_->onVCardChanged.disconnect(boost::bind(&UserSearchController::handleVCardChanged, this, _1, _2)); uiEventStream_->onUIEvent.disconnect(boost::bind(&UserSearchController::handleUIEvent, this, _1)); } void UserSearchController::handleUIEvent(boost::shared_ptr<UIEvent> event) { bool handle = false; boost::shared_ptr<RequestAddUserDialogUIEvent> request = boost::shared_ptr<RequestAddUserDialogUIEvent>(); if (type_ == AddContact) { - if (request = boost::dynamic_pointer_cast<RequestAddUserDialogUIEvent>(event)) { + if ((request = boost::dynamic_pointer_cast<RequestAddUserDialogUIEvent>(event))) { handle = true; } } else { if (boost::dynamic_pointer_cast<RequestChatWithUserDialogUIEvent>(event)) { handle = true; } } if (handle) { if (!window_) { diff --git a/Swift/QtUI/QtMUCConfigurationWindow.cpp b/Swift/QtUI/QtMUCConfigurationWindow.cpp index 6fdfd43..83a5f35 100644 --- a/Swift/QtUI/QtMUCConfigurationWindow.cpp +++ b/Swift/QtUI/QtMUCConfigurationWindow.cpp @@ -38,19 +38,19 @@ QtMUCConfigurationWindow::QtMUCConfigurationWindow(Form::ref form) : closed_(fal buttonsLayout->addWidget(okButton_); connect(okButton_, SIGNAL(clicked()), this, SLOT(handleOKClicked())); show(); } QtMUCConfigurationWindow::~QtMUCConfigurationWindow() { } -void QtMUCConfigurationWindow::closeEvent(QCloseEvent* event) { +void QtMUCConfigurationWindow::closeEvent(QCloseEvent* /*event*/) { if (!closed_) { onFormCancelled(); } } void QtMUCConfigurationWindow::handleCancelClicked() { close(); } |