[PATCH 1/2] Fix unused variable warning and spelling

Linus Torvalds torvalds at linux-foundation.org
Wed Jun 5 22:10:06 PDT 2013


From: Linus Torvalds <torvalds at linux-foundation.org>
Date: Thu, 6 Jun 2013 14:04:50 +0900
Subject: [PATCH 1/2] Fix unused variable warning and spelling

Commit 4b405caa2c47 ("Clean up divelist dive selection") made the sort
model variable in headerClicked unused, so get rid of it.  Fix a speling
eror closeby while at it.

Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
---
 qt-ui/divelistview.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index f0cb01a82a7b..cbd62408ba4a 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -117,9 +117,7 @@ void DiveListView::headerClicked(int i)
 		sortByColumn(i, Qt::DescendingOrder);
 	}
 
-	QSortFilterProxyModel *m = qobject_cast<QSortFilterProxyModel*>(model());
-
-	// repopulat the selections.
+	// repopulate the selections.
 	Q_FOREACH(struct dive *d, currentSelectedDives) {
 		selectDive(d, first);
 		first = false;
-- 
1.8.3



More information about the subsurface mailing list